Following the instructions here worked for me: http://www.thecoatlessprofessor.com/programming/rcpp-rcpparmadillo-and-os-x-mavericks-lgfortran-and-lquadmath-error
Although the instructions have a slight typo in them, and probably should read: curl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2 sudo tar fvxz gfortran-4.8.2-darwin13.tar.bz2 -C / I should note that I was having different problems than what you report, though, but try that. Which version of R did you install, btw? I'm assuming you've got a binary 3.2-mavericks binary from CRAN (and not compiled your own). HTH, -steve On Sat, May 2, 2015 at 6:43 PM, Peng Yu <pengyu...@gmail.com> wrote: > 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 > _______________________________________________ > 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 -- Steve Lianoglou Computational Biologist Genentech _______________________________________________ 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