简体   繁体   中英

Not able to install packages on RStudio Server

I am using RStudio Server and trying to install basic packages and getting the below error -

g++ -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -

I../inst/include/ -DU_STATIC_IMPLEMENTATION -fpic -

DU_STATIC_IMPLEMENTATIN -O2 -g -c Date.cpp -o Date.o

sh: g++: command not found

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

ERROR: compilation failed for package 'Rcpp'

Does anyone face the same issue ? Please advise what needs to be done to resolve this.

sh: g++: command not found

You should install development tools suite first, then back to install the packag again. On Ubuntu, you can try:

sudo apt-get install build-essential

On CentOS, you can try:

yum groupinstall "Development Tools"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM