无法安装RJava

时间:2016-08-09 12:20:53

标签: java r rstudio

我已将java安装到我的linux系统中,下面是详细信息。

hduser@ubuntu:~$ java -version
java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)
OpenJDK Client VM (build 24.95-b01, mixed mode, sharing)
hduser@ubuntu:~$ echo $JAVA_HOME
/usr/lib/jvm/java-7-openjdk-i386
hduser@ubuntu:~$ R CMD javareconf -e
Java interpreter : /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java
Java version     : 1.7.0_101
Java home path   : /usr/lib/jvm/java-7-openjdk-i386
Java compiler    : /usr/lib/jvm/java-7-openjdk-i386/bin/javac
Java headers gen.: /usr/lib/jvm/java-7-openjdk-i386/bin/javah
Java archive tool: /usr/lib/jvm/java-7-openjdk-i386/bin/jar

trying to compile and link a JNI progam 
detected JNI cpp flags    : -I$(JAVA_HOME)/include
detected JNI linker flags : -L$(JAVA_HOME)/jre/lib/i386/client -ljvm
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/lib/jvm/java-7-openjdk-i386/include     -fpic  -O3 -pipe  -g  -c conftest.c -o conftest.o
gcc -std=gnu99 -shared -o conftest.so conftest.o -L/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/client -ljvm -L/usr/lib/R/lib -lR

The following Java variables have been exported:
JAVA_HOME JAVA JAVAC JAVAH JAR JAVA_LIBS JAVA_CPPFLAGS JAVA_LD_LIBRARY_PATH
Running: /bin/bash

但是当我尝试在R Studio中执行以下命令时,我收到一条成功消息,但是没有安装该软件包。

  

install.packages( “rJava”)   将软件包安装到'/home/chetan/R/i686-pc-linux-gnu-library/3.0'   (因为'lib'未指定)

下载的源包在     “/ TMP / RtmpuzTGKK / downloaded_pa​​ckages”

但是没有安装包。有什么帮助吗?

0 个答案:

没有答案