[Rcpp-devel] Problem Installing RcppExamples on Mac OS X 10.8.1

Dirk Eddelbuettel edd at debian.org
Sun Sep 2 18:10:38 CEST 2012


On 2 September 2012 at 16:55, Benilton Carvalho wrote:
| Hi,
| 
| I'm trying to install the RcppExamples packages. I'm running Mac OS X
| 10.8.1 and R 2.15.1.
| 
| I start the installation with:
| 
| install.packages('RcppExamples', INSTALL_opts='--merge-multiarch',
| type='source')

What happens when you omit the INSTALL_opts argument?
 
| and everything goes okay until I get the error shown at the end of the message.
| 
| Any thoughts on how to proceed?
| 
| thank you,
| 
| benilton
| 
| --
| 
| g++ -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include
| -I/Library/Frameworks/R.framework/Resources/include/x86_64 -DNDEBUG
| -I/usr/local/include
| -I"/Volumes/DataPartition/Users/beniltoncarvalho/Rlibs/2.15/RcppClassic/include"
| -I"/Volumes/DataPartition/Users/beniltoncarvalho/Rlibs/2.15/Rcpp/include"
|   -fPIC  -g -O2  -c newRcppVectorExample.cpp -o newRcppVectorExample.o
| Error in tools:::file_path_as_absolute(base:::system.file(..., package
| = "RcppClassic")) :
|   file '' does not exist

Something is not right here, and things usually work (witness availability of
RcppExamples on all CRAN platforms, as well as on R-Forge).

I'd try to minimize whatever differences you have in your setup.

Dirk

| Calls: <Anonymous> ... RcppClassicLdPath -> RcppClassic.system.file ->
| <Anonymous>
| Execution halted
| g++ -arch x86_64 -dynamiclib -Wl,-headerpad_max_install_names
| -undefined dynamic_lookup -single_module -multiply_defined suppress
| -L/usr/local/lib -o RcppExamples.so RcppDataFrame.o RcppRNGs.o
| classicRcppDateExample.o classicRcppExample.o
| classicRcppMatrixExample.o classicRcppParamsExample.o
| classicRcppStringVectorExample.o classicRcppVectorExample.o
| newRcppDateExample.o newRcppMatrixExample.o newRcppParamsExample.o
| newRcppStringVectorExample.o newRcppVectorExample.o
| /Volumes/DataPartition/Users/beniltoncarvalho/Rlibs/2.15/Rcpp/lib/x86_64/libRcpp.a
| -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
| -Wl,CoreFoundation
| Error in tools:::file_path_as_absolute(base:::system.file(..., package
| = "RcppClassic")) :
|   file '' does not exist
| Calls: <Anonymous> ... RcppClassicLdPath -> RcppClassic.system.file ->
| <Anonymous>
| Execution halted
| installing to /Volumes/DataPartition/Users/beniltoncarvalho/Rlibs/2.15/RcppExamples/libs/x86_64
| ** testing if installed package can be loaded
| Error in dyn.load(file, DLLpath = DLLpath, ...) :
|   unable to load shared object
| '/Volumes/DataPartition/Users/beniltoncarvalho/Rlibs/2.15/RcppExamples/libs/x86_64/RcppExamples.so':
|   dlopen(/Volumes/DataPartition/Users/beniltoncarvalho/Rlibs/2.15/RcppExamples/libs/x86_64/RcppExamples.so,
| 6): Symbol not found: __Z14copyMessageToRPKc
|   Referenced from:
| /Volumes/DataPartition/Users/beniltoncarvalho/Rlibs/2.15/RcppExamples/libs/x86_64/RcppExamples.so
|   Expected in: flat namespace
|  in /Volumes/DataPartition/Users/beniltoncarvalho/Rlibs/2.15/RcppExamples/libs/x86_64/RcppExamples.so
| Error: loading failed
| Execution halted
| ERROR: loading failed
| * removing ‘/Volumes/DataPartition/Users/beniltoncarvalho/Rlibs/2.15/RcppExamples’
| * restoring previous
| ‘/Volumes/DataPartition/Users/beniltoncarvalho/Rlibs/2.15/RcppExamples’
| 
| The downloaded source packages are in
| 	‘/private/var/folders/sp/_dsm23tj7c1glq1hjgdf53500000gn/T/RtmpMsIbCd/downloaded_packages’
| Warning message:
| In install.packages("RcppExamples", INSTALL_opts = "--merge-multiarch",  :
|   installation of package ‘RcppExamples’ had non-zero exit status
| > sessionInfo()
| R version 2.15.1 Patched (2012-09-01 r60533)
| Platform: i386-apple-darwin9.8.0/i386 (32-bit)
| 
| locale:
| [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
| 
| attached base packages:
| [1] stats     graphics  grDevices datasets  utils     methods   base
| 
| other attached packages:
| [1] BiocInstaller_1.4.7
| 
| loaded via a namespace (and not attached):
| [1] tcltk_2.15.1 tools_2.15.1
| _______________________________________________
| Rcpp-devel mailing list
| Rcpp-devel at lists.r-forge.r-project.org
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  


More information about the Rcpp-devel mailing list