<div dir="ltr">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:  <a href="http://cran.r-project.org/bin/macosx/">http://cran.r-project.org/bin/macosx/</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 5, 2015 at 8:57 PM, Peng Yu <span dir="ltr"><<a href="mailto:pengyu.ut@gmail.com" target="_blank">pengyu.ut@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, May 5, 2015 at 10:52 PM, Kevin Ushey <<a href="mailto:kevinushey@gmail.com">kevinushey@gmail.com</a>> wrote:<br>
> Your error:<br>
><br>
> Error in dyn.load(file, DLLpath = DLLpath, ...) :<br>
>   unable to load shared object<br>
> '/Users/py/Library/R/3.2/library/Rcpp/libs/Rcpp.so':<br>
>   dlopen(/Users/py/Library/R/3.2/library/Rcpp/libs/Rcpp.so, 6): Symbol<br>
> not found: __ZNSoD0Ev<br>
><br>
><br>
> says some (mangled) symbol named `__ZNSoD0Ev` could not be found. Using the<br>
> online demangling tool at <a href="http://demangler.com/" target="_blank">http://demangler.com/</a>, I see this symbol is:<br>
><br>
> _std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()<br>
><br>
><br>
> which should be provided by your C++ standard library.<br>
><br>
> Given that you're using `g++` on OS X, I'm assuming you installed gcc from<br>
> macports or something like that, but either that was provided without a<br>
> standard library (libstdc++), or it's distributed in such a way that<br>
> libstdc++ isn't located on its default library search path.<br>
><br>
> So, you should either:<br>
><br>
> 1. Figure out where you can get libstdc++ for the g++ compiler you've<br>
> obtained, or<br>
> 2. Just use Apple's command line tools (clang etc) as that will 'just work'.<br>
<br>
</span>I use install.packages(). How to clang with it?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Regards,<br>
Peng<br>
</font></span></blockquote></div><br></div>