AWS Linux Server install R package

后端 未结 4 838
无人共我
无人共我 2021-01-18 02:14

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/

Unfor

相关标签:
4条回答
  • 2021-01-18 02:17

    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

    0 讨论(0)
  • 2021-01-18 02:19
    yum install R-devel
    

    Then you should be able to run the installation command.

    0 讨论(0)
  • 2021-01-18 02:36

    You need to install dmlc-core.

    This link will provide more information:

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

    0 讨论(0)
  • 2021-01-18 02:43

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

    0 讨论(0)
提交回复
热议问题