<div dir="ltr">I believe that the problem is that gcc has been removed from command line tools on OS X Mavericks:<div><br></div><div><a href="http://stackoverflow.com/questions/19533220/cannot-install-r-package-from-source-in-mac-osx-maverick">http://stackoverflow.com/questions/19533220/cannot-install-r-package-from-source-in-mac-osx-maverick</a><br>
</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Oct 27, 2013 at 2:46 AM, <span dir="ltr"><<a href="mailto:romain@r-enthusiasts.com" target="_blank">romain@r-enthusiasts.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
What does this give you:<br>
<br>
$ R CMD config CXX<br>
$ R CMD config CXXFLAGS<br>
<br>
What happens in an R console when you type:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
require(devtools)<br>
has_devel()<br>
</blockquote>
<br>
Romain<br>
<br>
Le 2013-10-27 06:02, Claymore M a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I am trying to get RInside to run on my mac (Mavericks). (I was able<br>
to get RInline running no problem using Ubuntu at work; "it just<br>
worked" with none of the hassle outlined below).<br>
<br>
I downloaded the package and tried to run:<br>
<br>
"make rinside_sample0" from within the standard folder of RInline.<br>
<br>
This produced Error1.<br>
<br></div>
_Among the first few lines of the many errors, I got:_<br>
<br>
<br>
_/Library/Frameworks/R.<u></u>framework/Versions/3.0/<u></u>Resources/library/RInside/<u></u>include/RInsideCommon.h:34:18:<br>
error: string: No such file or directory_<br>
<br>
<br>
_/Library/Frameworks/R.<u></u>framework/Versions/3.0/<u></u>Resources/library/RInside/<u></u>include/RInsideCommon.h:35:18:<br>
error: vector: No such file or directory_<br>
<br>
<br>
_/Library/Frameworks/R.<u></u>framework/Versions/3.0/<u></u>Resources/library/RInside/<u></u>include/RInsideCommon.h:36:20:<br>
error: iostream: No such file or directory_<div class="im"><br>
<br>
Why does the make file not find the "base" headers for iostream,<br>
string, vector from C++? I am guessing I need to tell the compiler<br>
where to find these files? How would I do this, presumably from<br>
editing the make file? Are there any guides for how to do this etc?<br>
Unfortunately, with no background in working with compilers when<br>
errors pop up, I wouldn't know where to start at this point.<br>
<br>
I found this post suggesting I need to compile RInside from source on<br>
the mac.<br>
<br>
<a href="http://stackoverflow.com/questions/12684408/rinside-linking-on-mac-osx" target="_blank">http://stackoverflow.com/<u></u>questions/12684408/rinside-<u></u>linking-on-mac-osx</a><br></div>
[1]<div class="im"><br>
<br>
I then tried compiling RInside from source, but got these errors:<br>
<br></div>
_* installing to library<br>
‘/Library/Frameworks/R.<u></u>framework/Versions/3.0/<u></u>Resources/library’_<br>
<br>
_* installing *source* package ‘RInside’ ..._<br>
<br>
_** package ‘RInside’ successfully unpacked and MD5 sums checked_<br>
<br>
_** libs_<br>
<br>
_/Library/Frameworks/R.<u></u>framework/Resources/bin/<u></u>Rscript<br>
tools/RInsideAutoloads.r > RInsideAutoloads.h_<br>
<br>
_/Library/Frameworks/R.<u></u>framework/Resources/bin/<u></u>Rscript<br>
tools/RInsideEnvVars.r > RInsideEnvVars.h_<br>
<br>
_llvm-g++-4.2 -arch x86_64<div class="im"><br>
-I/Library/Frameworks/R.<u></u>framework/Resources/include -DNDEBUG -I.<br>
-I../inst/include/ -I/usr/local/include<br>
<br>
-I"/Library/Frameworks/R.<u></u>framework/Versions/3.0/<u></u>Resources/library/Rcpp/<u></u>include"<br></div>
-fPIC -mtune=core2 -g -O2 -c MemBuf.cpp -o MemBuf.o_<br>
<br>
_MemBuf.cpp:23:20: error: iostream: No such file or directory_<br>
<br>
_MemBuf.cpp:24:19: error: cstdlib: No such file or directory_<br>
<br>
_MemBuf.cpp:25:18: error: string: No such file or directory_<br>
<br>
_In file included from MemBuf.cpp:27:_<br>
<br>
_../inst/include/MemBuf.h:25: error: ‘string’ in namespace<br>
‘std’ does not name a type_<br>
<br>
_../inst/include/MemBuf.h:32: error: expected unqualified-id before<br>
‘&’ token_<br>
<br>
_../inst/include/MemBuf.h:32: error: expected ‘,’ or ‘...’<br>
before ‘&’ token_<br>
<br>
_../inst/include/MemBuf.h: In member function ‘const char*<br>
MemBuf::getBufPtr()’:_<br>
<br>
_../inst/include/MemBuf.h:33: error: ‘buffer’ was not declared in<br>
this scope_<br>
<br>
_MemBuf.cpp: In constructor ‘MemBuf::MemBuf(int)’:_<br>
<br>
_MemBuf.cpp:34: error: class ‘MemBuf’ does not have any field<br>
named ‘buffer’_<br>
<br>
_MemBuf.cpp:35: error: ‘buffer’ was not declared in this scope_<br>
<br>
_MemBuf.cpp: In member function ‘void MemBuf::resize()’:_<br>
<br>
_MemBuf.cpp:39: error: ‘buffer’ was not declared in this scope_<br>
<br>
_MemBuf.cpp: In member function ‘void MemBuf::rewind()’:_<br>
<br>
_MemBuf.cpp:43: error: ‘buffer’ was not declared in this scope_<br>
<br>
_MemBuf.cpp: At global scope:_<br>
<br>
_MemBuf.cpp:46: error: expected unqualified-id before ‘&’ token_<br>
<br>
_MemBuf.cpp:46: error: expected ‘,’ or ‘...’ before ‘&’<br>
token_<br>
<br>
_MemBuf.cpp: In member function ‘void MemBuf::add()’:_<br>
<br>
_MemBuf.cpp:47: error: ‘buf’ was not declared in this scope_<br>
<br>
_MemBuf.cpp:48: error: ‘buffer’ was not declared in this scope_<br>
<br>
_MemBuf.cpp:51: error: ‘buffer’ was not declared in this scope_<br>
<br>
_make: *** [MemBuf.o] Error 1_<br>
<br>
_ERROR: compilation failed for package ‘RInside’_<div class="im"><br>
<br>
Again, something about iostream missing etc.<br>
<br>
Any advice on the steps for what I need to do to fix this problem<br>
would be much appreciated.<br>
<br>
Thanks in advance<br>
Clay<br>
<br></div>
Links:<br>
------<br>
[1] <a href="http://stackoverflow.com/questions/12684408/rinside-linking-on-mac-osx" target="_blank">http://stackoverflow.com/<u></u>questions/12684408/rinside-<u></u>linking-on-mac-osx</a><br>
</blockquote>
______________________________<u></u>_________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-<u></u>project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-<u></u>project.org/cgi-bin/mailman/<u></u>listinfo/rcpp-devel</a></blockquote></div><br></div>