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

Peng Yu pengyu.ut at gmail.com
Wed May 6 05:57:24 CEST 2015


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


More information about the Rcpp-devel mailing list