Compilation errors when installing packages


* installing *source* package ‘Rcpp’ ...

** package ‘Rcpp’ successfully unpacked and MD5 sums checked

** libs

g++ -I/usr/lib64/RRO-8.0/R-3.1.1/lib/R/include -DNDEBUG -I../inst/include/ -I/usr/local/include    -fpic  -g -O2  -c Date.cpp -o Date.o

/bin/bash: g++: command not found

make: *** [Date.o] Error 127

ERROR: compilation failed for package ‘Rcpp’

* removing ‘/usr/lib64/RRO-8.0/R-3.1.1/lib/R/library/Rcpp’

* installing *source* package ‘nloptr’ ...

somehow it does not ask for gcc which I did install following


This is a problem with our script not installing the package named g++ for you.

If you run this command on your system
sudo apt-get install g++
and then re-install RRO, you should ready to go.

Article ID: 3104115 - Last Review: 31 Oct 2015 - Revision: 1