的R - 对RStudio安装rJava - 亚马逊的云 [英] R - install rJava on RStudio - Amazon Cloud

查看:414
本文介绍了的R - 对RStudio安装rJava - 亚马逊的云的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用R于AWS EC2: AMI ID

RStudio-0.98.501_R-3.0.3_ubuntu-13.10-64bit(AMI-f06131a2)

和我无法安装rJava。

据我所知,我没有获得Ubuntu的命令行运行此code:     命令和apt-get安装R-CRAN-rjava

下面是错误。有什么我可以在里面RStudio办?

 安装包成/home/rstudio/R/x86_64-pc-linux-gnu-library/3.0
(为'库'是不确定的)
试图URLhttp://cran.rstudio.com/src/contrib/rJava_0.9-6.tar.gz
内容类型应用程序/ x-gzip的长度567515字节(554 KB)
打开网址
==================================================
下载554 KB

*安装*源*包'rJava...
**包'rJava成功解压缩和MD5校验和检查
检查海合会...海湾合作委员会-std = gnu99
检查C编译器是否工作......是的
检查C编译器默认的输出文件名...的a.out
检查可执行文件的后缀...
检查我们是否交叉编译...没有
检查对象文件的后缀... O
检查我们是否使用的是GNU C编译器...是的
检查是否GCC -std = gnu99接受-g ...是的
检查的gcc -std = gnu99选项接受ISO C89 ...没有必要
检查如何运行C preprocessor ​​... GCC -std = gnu99 -E
检查grep的处理排长和-e ... /斌/ grep的
检查egrep的... /斌/ grep的-E
检查ANSI C头文件...是的
检查SYS / wait.h即POSIX.1兼容...是的
检查SYS / types.h中...是的
检查SYS / stat.h ...是的
检查stdlib.h中...是的
检查string.h中...是的
检查memory.h ...是的
检查strings.h ...是的
检查inttypes.h ...是的
检查stdint.h ...是的
检查unistd.h中...是的
检查string.h中...(缓存)是
检查SYS / time.h中的可用性...是的
检查SYS / time.h中presence ...是的
检查SYS / time.h中...是的
检查unistd.h中...(缓存)是
检查的ANSI C-符合常量......是的
检查是否time.h中和sys / time.h中可能都被包括...是的
配置:GCC -std = gnu99检查是否支持静态内联...
是
检查SETJMP.H是否POSIX.1兼容...是的
检查此时sigsetjmp是否宣告...是的
检查siglongjmp是否宣告...是的
检查Java支持在研发... present:
除preTER:在/ usr /斌/ Java的
归档:在/ usr /斌/瓶
编译:在/ usr /斌/ javac的'
头preP:'在/ usr /斌/ javah的
CPP的标志:-I / usr / lib目录/ JVM / Java的7-的OpenJDK,AMD64 / JRE /../包括
Java的库:-L / usr / lib目录/ JVM / Java的7-的OpenJDK,AMD64 / JRE / LIB / AMD64 /服务器-ljvm
检查Java运行时是否正常工作?
的./configure:行3729:在/ usr / bin中/ java的:没有这样的文件或目录
没有
配置:错误:Java的跨preTER'的/ usr / bin中/ Java的'不工作
错误:rJava配置失败的包
*去除/home/rstudio/R/x86_64-pc-linux-gnu-library/3.0/rJava
警告在install.packages:
  安装包'rJava中有非零退出状态

下载的源码包是
    / tmp目录/ RtmpYSTRK3 / downloaded_pa​​ckages
 

解决方案

我找到了答案在这里。我应该用putty终端连接到该实例的命令行: http://www.louisaslett.com/RStudio_AMI/

I am using R on AWS EC2: AMI ID

RStudio-0.98.501_R-3.0.3_ubuntu-13.10-64bit (ami-f06131a2)

and I cannot install rJava.

As far as I know I do not have access to Ubuntu commandline to run this code: sudo apt-get install r-cran-rjava

Here is the error. Is there anything I can do inside RStudio?

Installing package into ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/rJava_0.9-6.tar.gz'
Content type 'application/x-gzip' length 567515 bytes (554 Kb)
opened URL
==================================================
downloaded 554 Kb

* installing *source* package ‘rJava’ ...
** package ‘rJava’ successfully unpacked and MD5 sums checked
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
configure: checking whether gcc -std=gnu99 supports static inline...
yes
checking whether setjmp.h is POSIX.1 compatible... yes
checking whether sigsetjmp is declared... yes
checking whether siglongjmp is declared... yes
checking Java support in R... present:
interpreter : '/usr/bin/java'
archiver    : '/usr/bin/jar'
compiler    : '/usr/bin/javac'
header prep.: '/usr/bin/javah'
cpp flags   : '-I/usr/lib/jvm/java-7-openjdk-amd64/jre/../include'
java libs   : '-L/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server -ljvm'
checking whether Java run-time works... 
./configure: line 3729: /usr/bin/java: No such file or directory
no
configure: error: Java interpreter '/usr/bin/java' does not work
ERROR: configuration failed for package ‘rJava’
* removing ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.0/rJava’
Warning in install.packages :
  installation of package ‘rJava’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpYSTRK3/downloaded_packages’

解决方案

I found the answer here. I should use PUTTY terminal to connect to the instance commandline: http://www.louisaslett.com/RStudio_AMI/

这篇关于的R - 对RStudio安装rJava - 亚马逊的云的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆