[Rcpp-devel] Can not install Rcpp on Mac OS X 10.9.5

Peng Yu pengyu.ut at gmail.com
Sun May 3 03:43:00 CEST 2015


Hi,

I having been trying to install Rcpp on Mac OS X 10.9.5 from
source. But I got the following error. Do you know how to fix this
problem?


  There is a binary version available but the source version is later:
     binary source needs_compilation
Rcpp 0.11.5 0.11.6              TRUE

installing the source package ‘Rcpp’

trying URL 'http://cran.r-project.org/src/contrib/Rcpp_0.11.6.tar.gz'
Content type 'application/x-gzip' length 2352221 bytes (2.2 MB)
==================================================
downloaded 2.2 MB

* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
** libs
g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
-I../inst/include/ -I/usr/local/include -I/usr/local/include/freetype2
-I/opt/X11/include    -fPIC  -Wall -mtune=core2 -g -O2  -c Date.cpp -o
Date.o
g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
-I../inst/include/ -I/usr/local/include -I/usr/local/include/freetype2
-I/opt/X11/include    -fPIC  -Wall -mtune=core2 -g -O2  -c Module.cpp
-o Module.o
g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
-I../inst/include/ -I/usr/local/include -I/usr/local/include/freetype2
-I/opt/X11/include    -fPIC  -Wall -mtune=core2 -g -O2  -c
Rcpp_init.cpp -o Rcpp_init.o
g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
-I../inst/include/ -I/usr/local/include -I/usr/local/include/freetype2
-I/opt/X11/include    -fPIC  -Wall -mtune=core2 -g -O2  -c api.cpp -o
api.o
g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
-I../inst/include/ -I/usr/local/include -I/usr/local/include/freetype2
-I/opt/X11/include    -fPIC  -Wall -mtune=core2 -g -O2  -c
attributes.cpp -o attributes.o
g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
-I../inst/include/ -I/usr/local/include -I/usr/local/include/freetype2
-I/opt/X11/include    -fPIC  -Wall -mtune=core2 -g -O2  -c barrier.cpp
-o barrier.o
g++ -dynamiclib -Wl,-headerpad_max_install_names -undefined
dynamic_lookup -single_module -multiply_defined suppress
-L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o
Rcpp.so Date.o Module.o Rcpp_init.o api.o attributes.o barrier.o
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
-Wl,CoreFoundation
installing to /Users/py/Library/R/3.2/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/py/Library/R/3.2/library/Rcpp/libs/Rcpp.so':
  dlopen(/Users/py/Library/R/3.2/library/Rcpp/libs/Rcpp.so, 6): Symbol
not found: __ZNSoD0Ev
  Referenced from: /Users/py/Library/R/3.2/library/Rcpp/libs/Rcpp.so
  Expected in: flat namespace
 in /Users/py/Library/R/3.2/library/Rcpp/libs/Rcpp.so
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/py/Library/R/3.2/library/Rcpp’
* restoring previous ‘/Users/py/Library/R/3.2/library/Rcpp’

The downloaded source packages are in
‘/private/var/folders/nn/p4t2bp0n0znc79dc77q45y9m0000gn/T/RtmpCaaP7K/downloaded_packages’
Warning message:
In install.packages("Rcpp", lib = r_libs_user_dir, repos =
"http://cran.r-project.org",  :
  installation of package ‘Rcpp’ had non-zero exit status

-- 
Regards,
Peng


More information about the Rcpp-devel mailing list