Install rJava package on AWS EC2 instance

帅比萌擦擦* 提交于 2019-12-13 20:17:09

问题


I am using R on AWS EC2 instance. I am trying to send a mail using the "mailR" package.

I was told that to install the package I should previously install the package "rJava" as "mailR" depends on it.

When trying to install "rJava" I get this error:

gcc: error: libgomp.spec: No such file or directory

After a quick search, I saw a post on this link explaining this:

"You have to make sure your GCC has OpenMP support enabled. Make sure you select OpenMP from the optional packages when installing."

I really have no idea how to do this. Should it be something to add in the parameters of install.packages("rJava")?

Assistance much appreciated !

M.


回答1:


Found the solution here

I did install gcc but apparently we should not install the latest version, so as suggested in the linked post, I downloaded version 4 and it worked.

You do that by typing in Putty:

sudo yum install gcc-4.8.5

Thanks !



来源:https://stackoverflow.com/questions/49616248/install-rjava-package-on-aws-ec2-instance

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