[Rcpp-devel] Problem compling rinside_sample0 on OSX

Dirk Eddelbuettel edd at debian.org
Tue Apr 6 17:36:22 CEST 2010


On 6 April 2010 at 09:22, Dan Kulp wrote:
| Sorry about that, I thought you had figured out the CRAN version numbers....
| 
| Rcpp : 0.7.11
| RInside: 0.2.2
| 
| I also tried installing the package as you recommend .. doesn't help,
| clearly because I already have 0.7.11
| 
| Any more suggestions?

Not at this point given the somewhat incomplete information you provided.

See below for a log from my Linux box.

Dirk

edd at ron:~/svn/rcpp> R CMD INSTALL pkg/Rcpp_0.7.11.tar.gz 
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘Rcpp’ ...
** libs
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c Dimension.cpp -o Dimension.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c DottedPair.cpp -o DottedPair.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c Environment.cpp -o Environment.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c Evaluator.cpp -o Evaluator.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c Function.cpp -o Function.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c Language.cpp -o Language.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c Pairlist.cpp -o Pairlist.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c Promise.cpp -o Promise.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RObject.cpp -o RObject.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppCommon.cpp -o RcppCommon.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppDate.cpp -o RcppDate.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppDateVector.cpp -o RcppDateVector.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppDatetime.cpp -o RcppDatetime.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppDatetimeVector.cpp -o RcppDatetimeVector.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppFrame.cpp -o RcppFrame.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppFunction.cpp -o RcppFunction.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppList.cpp -o RcppList.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppMatrix.cpp -o RcppMatrix.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppMatrixView.cpp -o RcppMatrixView.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppNumList.cpp -o RcppNumList.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppParams.cpp -o RcppParams.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppResultSet.cpp -o RcppResultSet.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppStringVector.cpp -o RcppStringVector.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppStringVectorView.cpp -o RcppStringVectorView.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppVector.cpp -o RcppVector.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c RcppVectorView.cpp -o RcppVectorView.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c S4.cpp -o S4.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c Symbol.cpp -o Symbol.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c WeakReference.cpp -o WeakReference.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c clone.cpp -o clone.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c coerce.cpp -o coerce.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c debugging.cpp -o debugging.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c exceptions.cpp -o exceptions.o
g++ -I/usr/share/R/include -I.     -fpic  -O3 -Wall -pipe  -c r_cast.cpp -o r_cast.o
g++ -shared -o Rcpp.so Dimension.o DottedPair.o Environment.o Evaluator.o Function.o Language.o Pairlist.o Promise.o RObject.o RcppCommon.o RcppDate.o RcppDateVector.o RcppDatetime.o RcppDatetimeVector.o RcppFrame.o RcppFunction.o RcppList.o RcppMatrix.o RcppMatrixView.o RcppNumList.o RcppParams.o RcppResultSet.o RcppStringVector.o RcppStringVectorView.o RcppVector.o RcppVectorView.o S4.o Symbol.o WeakReference.o clone.o coerce.o debugging.o exceptions.o r_cast.o -L/usr/lib/R/lib -lR
g++ -o libRcpp.so Dimension.o DottedPair.o Environment.o Evaluator.o Function.o Language.o Pairlist.o Promise.o RObject.o RcppCommon.o RcppDate.o RcppDateVector.o RcppDatetime.o RcppDatetimeVector.o RcppFrame.o RcppFunction.o RcppList.o RcppMatrix.o RcppMatrixView.o RcppNumList.o RcppParams.o RcppResultSet.o RcppStringVector.o RcppStringVectorView.o RcppVector.o RcppVectorView.o S4.o Symbol.o WeakReference.o clone.o coerce.o debugging.o exceptions.o r_cast.o -shared   -L/usr/lib/R/lib -lR
ar qc libRcpp.a Dimension.o DottedPair.o Environment.o Evaluator.o Function.o Language.o Pairlist.o Promise.o RObject.o RcppCommon.o RcppDate.o RcppDateVector.o RcppDatetime.o RcppDatetimeVector.o RcppFrame.o RcppFunction.o RcppList.o RcppMatrix.o RcppMatrixView.o RcppNumList.o RcppParams.o RcppResultSet.o RcppStringVector.o RcppStringVectorView.o RcppVector.o RcppVectorView.o S4.o Symbol.o WeakReference.o clone.o coerce.o debugging.o exceptions.o r_cast.o
cp libRcpp.so ../inst/lib
cp Rcpp*.h ../inst/lib
cp Rcpp/*.h ../inst/lib/Rcpp
cp Rcpp/internal/*.h ../inst/lib/Rcpp/internal
cp Rcpp/traits/*.h ../inst/lib/Rcpp/traits
cp libRcpp.a ../inst/lib
rm libRcpp.so libRcpp.a
installing to /usr/local/lib/R/site-library/Rcpp/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded

* DONE (Rcpp)
edd at ron:~/svn/rcpp> R CMD INSTALL ../rinside/RInside_0.2.2.tar.gz 
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘RInside’ ...
** libs
** arch - 
/usr/lib/R/bin/R --vanilla --slave < tools/RInsideEnvVars.r > RInsideEnvVars.h
/usr/lib/R/bin/R --vanilla --slave < tools/RInsideAutoloads.r > RInsideAutoloads.h
g++ -I/usr/share/R/include  -Wall -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/lib     -fpic  -O3 -Wall -pipe  -c MemBuf.cpp -o MemBuf.o
g++ -I/usr/share/R/include  -Wall -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/lib     -fpic  -O3 -Wall -pipe  -c RInside.cpp -o RInside.o
g++ -o libRInside.so  MemBuf.o RInside.o -shared   -L/usr/lib/R/lib -lR
ar qc libRInside.a MemBuf.o RInside.o
cp libRInside.so  ../inst/lib
cp RInside.h MemBuf.h ../inst/lib
cp libRInside.a ../inst/lib
rm libRInside.so  libRInside.a
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded

* DONE (RInside)
edd at ron:~/svn/rcpp> cd ../rinside/pkg/inst/examples/standard/
edd at ron:~/svn/rinside/pkg/inst/examples/standard> rm rinside_sample0; make rinside_sample0
g++ -I/usr/share/R/include -I/usr/local/lib/R/site-library/Rcpp/lib -I/usr/local/lib/R/site-library/RInside/lib -g -O2 -Wall    rinside_sample0.cpp  -L/usr/lib/R/lib -lR -lblas -llapack -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -L/usr/local/lib/R/site-library/RInside/lib -lRInside -Wl,-rpath,/usr/local/lib/R/site-library/RInside/lib -o rinside_sample0
edd at ron:~/svn/rinside/pkg/inst/examples/standard> ./rinside_sample0
Hello, world!
edd at ron:~/svn/rinside/pkg/inst/examples/standard> 

-- 
  Registration is open for the 2nd International conference R / Finance 2010
  See http://www.RinFinance.com for details, and see you in Chicago in April!


More information about the Rcpp-devel mailing list