I am trying to get RInside to run on my mac (Mavericks). (I was able to get RInline running no problem using Ubuntu at work; "it just worked" with none of the hassle outlined below). I downloaded the package and tried to run: "make rinside_sample0" from within the standard folder of RInline. This produced Error1. Among the first few lines of the many errors, I got:
/Library/Frameworks/R.framework/Versions/3.0/Resources/library/RInside/include/RInsideCommon.h:34:18: error: string: No such file or directory /Library/Frameworks/R.framework/Versions/3.0/Resources/library/RInside/include/RInsideCommon.h:35:18: error: vector: No such file or directory /Library/Frameworks/R.framework/Versions/3.0/Resources/library/RInside/include/RInsideCommon.h:36:20: error: iostream: No such file or directory Why does the make file not find the "base" headers for iostream, string, vector from C++? I am guessing I need to tell the compiler where to find these files? How would I do this, presumably from editing the make file? Are there any guides for how to do this etc? Unfortunately, with no background in working with compilers when errors pop up, I wouldn't know where to start at this point. I found this post suggesting I need to compile RInside from source on the mac.http://stackoverflow.com/questions/12684408/rinside-linking-on-mac-osx I then tried compiling RInside from source, but got these errors: * installing to library ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library’ * installing *source* package ‘RInside’ ... ** package ‘RInside’ successfully unpacked and MD5 sums checked ** libs /Library/Frameworks/R.framework/Resources/bin/Rscript tools/RInsideAutoloads.r > RInsideAutoloads.h /Library/Frameworks/R.framework/Resources/bin/Rscript tools/RInsideEnvVars.r > RInsideEnvVars.h llvm-g++-4.2 -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I. -I../inst/include/ -I/usr/local/include -I"/Library/Frameworks/R.framework/Versions/3.0/Resources/library/Rcpp/include" -fPIC -mtune=core2 -g -O2 -c MemBuf.cpp -o MemBuf.o MemBuf.cpp:23:20: error: iostream: No such file or directory MemBuf.cpp:24:19: error: cstdlib: No such file or directory MemBuf.cpp:25:18: error: string: No such file or directory In file included from MemBuf.cpp:27: ../inst/include/MemBuf.h:25: error: ‘string’ in namespace ‘std’ does not name a type ../inst/include/MemBuf.h:32: error: expected unqualified-id before ‘&’ token ../inst/include/MemBuf.h:32: error: expected ‘,’ or ‘...’ before ‘&’ token ../inst/include/MemBuf.h: In member function ‘const char* MemBuf::getBufPtr()’: ../inst/include/MemBuf.h:33: error: ‘buffer’ was not declared in this scope MemBuf.cpp: In constructor ‘MemBuf::MemBuf(int)’: MemBuf.cpp:34: error: class ‘MemBuf’ does not have any field named ‘buffer’ MemBuf.cpp:35: error: ‘buffer’ was not declared in this scope MemBuf.cpp: In member function ‘void MemBuf::resize()’: MemBuf.cpp:39: error: ‘buffer’ was not declared in this scope MemBuf.cpp: In member function ‘void MemBuf::rewind()’: MemBuf.cpp:43: error: ‘buffer’ was not declared in this scope MemBuf.cpp: At global scope: MemBuf.cpp:46: error: expected unqualified-id before ‘&’ token MemBuf.cpp:46: error: expected ‘,’ or ‘...’ before ‘&’ token MemBuf.cpp: In member function ‘void MemBuf::add()’: MemBuf.cpp:47: error: ‘buf’ was not declared in this scope MemBuf.cpp:48: error: ‘buffer’ was not declared in this scope MemBuf.cpp:51: error: ‘buffer’ was not declared in this scope make: *** [MemBuf.o] Error 1 ERROR: compilation failed for package ‘RInside’ Again, something about iostream missing etc. Any advice on the steps for what I need to do to fix this problem would be much appreciated. Thanks in advanceClay
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel