If you're comfortable using the R debugger, maybe you could set
"options(error=recover)" and see what's going on?
Or, from the error log you included, it appears that RcppClassicLdPath
is somehow involved. Can you try calling that directly from the console
and see whether it succeeds?
Lastly, what happens when you run this from R.app GUI, and choose to
install RcppExamples into the system library instead of your home directory?
Davor
On 12-09-02 08:55 AM, 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')
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
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@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel