[Rcpp-devel] Trouble installing RInside
Peter Rhone
peter.rhone at medizin.uni-leipzig.de
Wed Jul 14 15:20:10 CEST 2010
Hello,
I'm working on a Ubuntu Lucid (10.04) workstation and am trying to
install RInside.
I have the following R packages installed through the package management
system:
i r-base - GNU R statistical computation
i A r-base-core - GNU R core of statistical
i A r-base-dev - GNU R installation of auxiliary
i A r-base-html - GNU R html docs for statistical
i A r-cran-boot - GNU R package for bootstrapping
i A r-cran-class - GNU R package for classification
i A r-cran-cluster - GNU R package for cluster analysis
i A r-cran-codetools - GNU R package providing code
i A r-cran-foreign - GNU R package to read/write data
i A r-cran-kernsmooth - GNU R package for kernel
i A r-cran-lattice - GNU R package for 'Trellis'
i A r-cran-mass - GNU R package of Venables and
i A r-cran-matrix - GNU R package of classes for dense
i A r-cran-mgcv - GNU R package for multiple
i A r-cran-nlme - GNU R package for (non-)linear
i A r-cran-nnet - GNU R package for feed-forward
i A r-cran-rpart - GNU R package for recursive
i A r-cran-spatial - GNU R package for spatial
i A r-cran-survival - GNU R package for survival
i A r-doc-html - GNU R html manuals for statistical
i A r-recommended - GNU R collection of recommended
I downloaded both Rcpp_0.8.4.tar.gz and RInside_0.2.2.tar.gz. I could
install Rcpp without any problems:
peter at beluga:~/Downloads/R$ R CMD INSTALL Rcpp_0.8.4.tar.gz
WARNING: ignoring environment value of R_HOME
* installing to library ‘/home/peter/R/library’
* installing *source* package ‘Rcpp’ ...
** libs
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Date.cpp -o Date.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
DateVector.cpp -o DateVector.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Datetime.cpp -o Datetime.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
DatetimeVector.cpp -o DatetimeVector.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Dimension.cpp -o Dimension.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
DottedPair.cpp -o DottedPair.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Environment.cpp -o Environment.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Evaluator.cpp -o Evaluator.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Formula.cpp -o Formula.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Function.cpp -o Function.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Language.cpp -o Language.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Module.cpp -o Module.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Pairlist.cpp -o Pairlist.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Promise.cpp -o Promise.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RObject.cpp -o RObject.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppCommon.cpp -o RcppCommon.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppDate.cpp -o RcppDate.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppDateVector.cpp -o RcppDateVector.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppDatetime.cpp -o RcppDatetime.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppDatetimeVector.cpp -o RcppDatetimeVector.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppFrame.cpp -o RcppFrame.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppFunction.cpp -o RcppFunction.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppList.cpp -o RcppList.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppNumList.cpp -o RcppNumList.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppParams.cpp -o RcppParams.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppResultSet.cpp -o RcppResultSet.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppStringVector.cpp -o RcppStringVector.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
RcppStringVectorView.cpp -o RcppStringVectorView.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
S4.cpp -o S4.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
Symbol.cpp -o Symbol.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
WeakReference.cpp -o WeakReference.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
coerce.cpp -o coerce.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
debugging.cpp -o debugging.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
exceptions.cpp -o exceptions.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
posixt.cpp -o posixt.o
g++ -I/usr/share/R/include -I../inst/include/ -fpic -g -O2 -c
r_cast.cpp -o r_cast.o
g++ -shared -o Rcpp.so Date.o DateVector.o Datetime.o DatetimeVector.o
Dimension.o DottedPair.o Environment.o Evaluator.o Formula.o Function.o
Language.o Module.o Pairlist.o Promise.o RObject.o RcppCommon.o
RcppDate.o RcppDateVector.o RcppDatetime.o RcppDatetimeVector.o
RcppFrame.o RcppFunction.o RcppList.o RcppNumList.o RcppParams.o
RcppResultSet.o RcppStringVector.o RcppStringVectorView.o S4.o Symbol.o
WeakReference.o coerce.o debugging.o exceptions.o posixt.o r_cast.o
-L/usr/lib64/R/lib -lR
g++ -o libRcpp.so Date.o DateVector.o Datetime.o DatetimeVector.o
Dimension.o DottedPair.o Environment.o Evaluator.o Formula.o Function.o
Language.o Module.o Pairlist.o Promise.o RObject.o RcppCommon.o
RcppDate.o RcppDateVector.o RcppDatetime.o RcppDatetimeVector.o
RcppFrame.o RcppFunction.o RcppList.o RcppNumList.o RcppParams.o
RcppResultSet.o RcppStringVector.o RcppStringVectorView.o S4.o Symbol.o
WeakReference.o coerce.o debugging.o exceptions.o posixt.o r_cast.o
-shared -L/usr/lib64/R/lib -lR
ar qc libRcpp.a Date.o DateVector.o Datetime.o DatetimeVector.o
Dimension.o DottedPair.o Environment.o Evaluator.o Formula.o Function.o
Language.o Module.o Pairlist.o Promise.o RObject.o RcppCommon.o
RcppDate.o RcppDateVector.o RcppDatetime.o RcppDatetimeVector.o
RcppFrame.o RcppFunction.o RcppList.o RcppNumList.o RcppParams.o
RcppResultSet.o RcppStringVector.o RcppStringVectorView.o S4.o Symbol.o
WeakReference.o coerce.o debugging.o exceptions.o posixt.o r_cast.o
cp libRcpp.so ../inst/lib
cp libRcpp.a ../inst/lib
rm libRcpp.so libRcpp.a
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
* DONE (Rcpp)
...but RInside failed:
peter at beluga:~/Downloads/R$ R CMD INSTALL RInside_0.2.2.tar.gz
WARNING: ignoring environment value of R_HOME
* installing to library ‘/home/peter/R/library’
* installing *source* package ‘RInside’ ...
** libs
** arch -
/usr/lib64/R/bin/R --vanilla --slave < tools/RInsideEnvVars.r >
RInsideEnvVars.h
/usr/lib64/R/bin/R --vanilla --slave < tools/RInsideAutoloads.r >
RInsideAutoloads.h
g++ -I/usr/share/R/include -Wall -I/usr/share/R/include
-I/home/peter/R/library/Rcpp/include -fpic -I.
-I/usr/share/R/include -g -O2 -c MemBuf.cpp -o MemBuf.o
/bin/bash: g++: command not found
make: *** [MemBuf.o] Error 127
ERROR: compilation failed for package ‘RInside’
* removing ‘/home/peter/R/library/RInside’
The result is the same if I try to install it from within R using
install.packages("RInside",lib="~/R/library")
I have set R_HOME and R_LIBS_USER
export R_HOME="/usr"
export R_LIBS_USER="~/R/library"
Any help would be greatly appreciated.
-Peter
More information about the Rcpp-devel
mailing list