AWS Linux Server install R package

后端 未结 4 841
无人共我
无人共我 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: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 ...

提交回复
热议问题