<font face="arial,helvetica,sans-serif"><br></font><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 1:20 PM, Jiqiang Guo <span dir="ltr"><<a href="mailto:guojq28@gmail.com" target="_blank">guojq28@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I tried the example of sourceCpp on Mac mountain lion with R 2.15.1<br>
with the following error (I hit the similar error in using RStan as<br>
well).<br></blockquote><div><br></div><div>I think the common problem here might be whether R_ARCH is set correctly. On the Mac R_ARCH needs to be set in order for R CMD SHLIB, which is used by both sourceCpp and RStan, to work.</div>
<div><br></div><div>For 64-bit Macs this value would be:</div><div><br></div><div>R_ARCH=/x86_64</div><div><br></div><div>What is R_ARCH set to in your session?</div><div><br></div><div>J.J.</div></div>