AWS Linux Server install R package

只愿长相守 提交于 2019-12-01 16:03:49

问题


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.

Can anybody help? I installed devtools and I am able to install other packages such as xml2, devtools and deplyr.


回答1:


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

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 ...




回答2:


You need to install dmlc-core.

This link will provide more information:

A common bricks library for building scalable and portable distributed machine learning




回答3:


based on https://github.com/RcppCore/RcppArmadillo/issues/200, I think this issue is due to a g++ compatability issue. It might also explain why when I installed devtools it kept giving me [-Wdeprecated-declarations] so run: sudo yum remove gcc72-c++.x86_64 libgcc72.x86_64




回答4:


yum install R-devel

Then you should be able to run the installation command.



来源:https://stackoverflow.com/questions/48307251/aws-linux-server-install-r-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!