AWS Linux Server install R package

不打扰是莪最后的温柔 提交于 2019-12-01 16:44:23

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

You need to install dmlc-core.

This link will provide more information:

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

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

Juan LP
yum install R-devel

Then you should be able to run the installation command.

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