AWS Linux Server安装R软件包 [英] AWS Linux Server install R package

查看:333
本文介绍了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 ...

这篇关于AWS Linux Server安装R软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆