AWS Linux Server安装R软件包
我尝试按照此指南通过Amazon Linux实例上的Rstudio Server安装软件包"data.table"(和"aws.s3)": http://stanke.co/category/r/
I try to install the package "data.table" (and "aws.s3)" via Rstudio Server on an Amazon Linux instance following this guide: http://stanke.co/category/r/
不幸的是,我收到以下错误消息.我真的不知道该怎么办.
Unfortunately, I get the following error message. I really don't know what else to do.
有人可以帮忙吗?我安装了devtools,并且能够安装其他软件包,例如xml2,devtools和deplyr.
Can anybody help? I installed devtools and I am able to install other packages such as xml2, devtools and deplyr.
我在AWS上遇到了同样的问题,并且已经解决. 您需要先安装gcc64和openmp共享支持库.
I had the same issue on AWS and already fixed. You need first install gcc64 and openmp shared support library.
sudo yum install gcc64
sudo yum install libgomp
然后在用户目录下创建一个带有Makevars文件的.R文件夹,其中包含以下内容(它将告诉R使用哪个编译器):
Then under your user home create an .R folder with a Makevars file in it, with the following content (it will tell to R which compiler to use):
CC = /usr/bin/gcc64
CXX = /usr/bin/g++
SHLIB_OPENMP_CFLAGS = -fopenmp
我希望它也对您有用...
I hope it's working for you as well ...