简体   繁体   English

无法在RStudio服务器上安装软件包

[英]Not able to install packages on RStudio Server

I am using RStudio Server and trying to install basic packages and getting the below error - 我正在使用RStudio服务器并尝试安装基本软件包并收到以下错误-

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

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

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

sh: g++: command not found sh:g ++:找不到命令

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

ERROR: compilation failed for package 'Rcpp' 错误:软件包“ Rcpp”的编译失败

Does anyone face the same issue ? 有人面对同样的问题吗? Please advise what needs to be done to resolve this. 请告知需要解决的问题。

sh: g++: command not found sh:g ++:找不到命令

You should install development tools suite first, then back to install the packag again. 您应该先安装开发工具套件 ,然后再重新安装packag。 On Ubuntu, you can try: 在Ubuntu上,您可以尝试:

sudo apt-get install build-essential

On CentOS, you can try: 在CentOS上,您可以尝试:

yum groupinstall "Development Tools"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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