[Rcpp-devel] Can not install Rcpp on Mac OS X 10.9.5
Oh, I wonder if you have the Snow Leopard version of R installed, when you should have the Mavericks version? What is the output of `sessionInfo()`? You might need to install the (Mavericks, non-Snow Leopard) version of R here: http://cran.r-project.org/bin/macosx/
On Tue, May 5, 2015 at 8:57 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
On Tue, May 5, 2015 at 10:52 PM, Kevin Ushey <kevinushey at gmail.com> wrote:
Your error: 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 says some (mangled) symbol named `__ZNSoD0Ev` could not be found. Using
the
online demangling tool at http://demangler.com/, I see this symbol is: _std::basic_ostream<char, std::char_traits<char> >::~basic_ostream() which should be provided by your C++ standard library. Given that you're using `g++` on OS X, I'm assuming you installed gcc
from
macports or something like that, but either that was provided without a standard library (libstdc++), or it's distributed in such a way that libstdc++ isn't located on its default library search path. So, you should either: 1. Figure out where you can get libstdc++ for the g++ compiler you've obtained, or 2. Just use Apple's command line tools (clang etc) as that will 'just
work'. I use install.packages(). How to clang with it? -- Regards, Peng
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150505/0be68ec5/attachment-0001.html>