Skip to content

Unable to load shared object when installing Rcpp 0.12.10 #662

@abeburnett

Description

@abeburnett

I had Rcpp installed, so I removed it, restarted R, and then attempted to install the new release. It failed saying that it couldn't find the shared object, and that it was unable to load the libc++.1.dylib library.

I'm running Mac OS X 10.12.4, and XCode 8.3 (which was a recent update--not sure if that is related to this issue).

Restarting R session...

> install.packages("Rcpp")
Installing package into ‘/Users/abeb/Library/R/3.3/library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/Rcpp_0.12.10.tar.gz'
Content type 'application/x-gzip' length 2446049 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** libs
/usr/local/opt/llvm/bin/clang++ -I/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include    -fPIC  -g -O2  -c Date.cpp -o Date.o
/usr/local/opt/llvm/bin/clang++ -I/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include    -fPIC  -g -O2  -c Module.cpp -o Module.o
/usr/local/opt/llvm/bin/clang++ -I/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include    -fPIC  -g -O2  -c Rcpp_init.cpp -o Rcpp_init.o
/usr/local/opt/llvm/bin/clang++ -I/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include    -fPIC  -g -O2  -c api.cpp -o api.o
/usr/local/opt/llvm/bin/clang++ -I/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include    -fPIC  -g -O2  -c attributes.cpp -o attributes.o
/usr/local/opt/llvm/bin/clang++ -I/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/usr/local/opt/gettext/include -I/usr/local/opt/llvm/include    -fPIC  -g -O2  -c barrier.cpp -o barrier.o
/usr/local/opt/llvm/bin/clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/opt/gettext/lib -L/usr/local/opt/llvm/lib -L/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/llvm/lib -o Rcpp.so Date.o Module.o Rcpp_init.o api.o attributes.o barrier.o -F/usr/local/Cellar/r/3.3.3_1/R.framework/.. -framework R -lintl -Wl,-framework -Wl,CoreFoundation
installing to /Users/abeb/Library/R/3.3/library/Rcpp/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/Users/abeb/Library/R/3.3/library/Rcpp/libs/Rcpp.so':
  dlopen(/Users/abeb/Library/R/3.3/library/Rcpp/libs/Rcpp.so, 6): Library not loaded: @rpath/libc++.1.dylib
  Referenced from: /Users/abeb/Library/R/3.3/library/Rcpp/libs/Rcpp.so
  Reason: image not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/abeb/Library/R/3.3/library/Rcpp’
Warning in install.packages :
  installation of package ‘Rcpp’ had non-zero exit status

The downloaded source packages are in
	‘/private/var/folders/lt/km9wf6gn5fv5m7m48qjyx6jh0000gq/T/RtmppQigQ3/downloaded_packages’

Any thoughts on things I can try to get Rcpp to install?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions