本文介绍了在AWS EC2实例上安装rJava软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在AWS EC2实例上使用R.我正在尝试使用"mailR"包发送邮件.

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

有人告诉我要安装该软件包,我之前应该先将其安装为"rJava",因为"mailR"取决于该软件包.

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

尝试安装"rJava"时出现此错误:

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

快速搜索后,我在此链接上看到了一篇帖子,对此进行了解释:

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

我真的不知道该怎么做.应该在install.packages("rJava")参数中添加一些内容吗?

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

非常感谢您的帮助!

M.

推荐答案

找到了解决方案

我确实安装了gcc,但显然我们不应该安装最新版本,因此,如链接文章中所建议,我下载了版本4,并且可以正常工作.

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.

您可以通过输入Putty来做到这一点:

You do that by typing in Putty:

sudo yum install gcc-4.8.5

谢谢!

这篇关于在AWS EC2实例上安装rJava软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-24 12:53