城阳建设局网站,网架结构厂家,在线制作横幅,东莞网站建设推广我已经看过一些与此相关的帖子…但是所有建议的解决方案看起来似乎不工作….我在EC2实例中运行R#xff0c;并运行以下命令来尝试安装rJava但无效…任何帮助将不胜感激。 install.packages(rJava)Installing package(s) into ‘/home/ubuntu/R/library’(as ‘…我已经看过一些与此相关的帖子…但是所有建议的解决方案看起来似乎不工作….我在EC2实例中运行R并运行以下命令来尝试安装rJava但无效…任何帮助将不胜感激。 install.packages(rJava)Installing package(s) into ‘/home/ubuntu/R/library’(as ‘lib’ is unspecified)trying URL http://cran.stat.nus.edu.sg/src/contrib/rJava_0.9-3.tar.gzContent type application/x-gzip length 537153 bytes (524 Kb)opened URLdownloaded 524 Kb* installing *source* package ‘rJava’ ...** package ‘rJava’ successfully unpacked and MD5 sums checkedchecking for gcc... gcc -stdgnu99checking for C compiler default output file name... a.outchecking whether the C compiler works... yeschecking whether we are cross compiling... nochecking for suffix of executables...checking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc -stdgnu99 accepts -g... yeschecking for gcc -stdgnu99 option to accept ISO C89... none neededchecking how to run the C preprocessor... gcc -stdgnu99 -Echecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for ANSI C header files... yeschecking for sys/wait.h that is POSIX.1 compatible... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking for string.h... (cached) yeschecking sys/time.h usability... yeschecking sys/time.h presence... yeschecking for sys/time.h... yeschecking for unistd.h... (cached) yeschecking for an ANSI C-conforming const... yeschecking whether time.h and sys/time.h may both be included... yesconfigure: checking whether gcc -stdgnu99 supports static inline...yeschecking whether setjmp.h is POSIX.1 compatible... yeschecking whether sigsetjmp is declared... yeschecking whether siglongjmp is declared... yeschecking Java support in R... present:interpreter : /usr/bin/javaarchiver : compiler : header prep.: cpp flags : java libs : -L/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server -L/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64 -L/usr/lib/jvm/java-6-openjdk-amd64/jre/../lib/amd64 -L/usr/java/packages/lib/amd64 -L/usr/lib/x86_64-linux-gnu/jni -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib/jni -L/lib -L/usr/lib -ljvmconfigure: error: Java Development Kit (JDK) is missing or not registered in RMake sure R is configured with full Java support (including JDK). RunR CMD javareconfas root to add Java support to R.If you dont have root privileges, runR CMD javareconf -eto set all Java-related variables and then install rJava.ERROR: configuration failed for package ‘rJava’* removing ‘/home/ubuntu/R/library/rJava’Warning in install.packages :installation of package ‘rJava’ had non-zero exit statusThe downloaded source packages are in‘/tmp/RtmpaEiskU/downloaded_packages’ system(sudo R CMD javareconf)Java interpreter : /usr/bin/javaJava version : 1.6.0_24Java home path : /usr/lib/jvm/java-6-openjdk-amd64/jreJava compiler : not presentJava headers gen.:Java archive tool:Java library path: $(JAVA_HOME)/lib/amd64/server:$(JAVA_HOME)/lib/amd64:$(JAVA_HOME)/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/libJNI linker flags : -L$(JAVA_HOME)/lib/amd64/server -L$(JAVA_HOME)/lib/amd64 -L$(JAVA_HOME)/../lib/amd64 -L/usr/java/packages/lib/amd64 -L/usr/lib/x86_64-linux-gnu/jni -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib/jni -L/lib -L/usr/lib -ljvmJNI cpp flags :Updating Java configuration in /etc/RDone. install.packages(rJava)[same as before, just skipping to the error parts...]java libs : -L/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server -L/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64 -L/usr/lib/jvm/java-6-openjdk-amd64/jre/../lib/amd64 -L/usr/java/packages/lib/amd64 -L/usr/lib/x86_64-linux-gnu/jni -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib/jni -L/lib -L/usr/lib -ljvmconfigure: error: Java Development Kit (JDK) is missing or not registered in RMake sure R is configured with full Java support (including JDK). RunR CMD javareconfas root to add Java support to R.If you dont have root privileges, runR CMD javareconf -eto set all Java-related variables and then install rJava.ERROR: configuration failed for package ‘rJava’* removing ‘/home/ubuntu/R/library/rJava’Warning in install.packages :installation of package ‘rJava’ had non-zero exit statusThe downloaded source packages are in‘/tmp/RtmpaEiskU/downloaded_packages’ sessionInfo()R version 2.15.1 (2012-06-22)Platform: x86_64-pc-linux-gnu (64-bit)locale:[1] LC_CTYPEen_US.UTF-8 LC_NUMERICC LC_TIMEC LC_COLLATEC[5] LC_MONETARYC LC_MESSAGESC LC_PAPERC LC_NAMEC[9] LC_ADDRESSC LC_TELEPHONEC LC_MEASUREMENTC LC_IDENTIFICATIONCattached base packages:[1] stats graphics grDevices utils datasets methods baseloaded via a namespace (and not attached):[1] tools_2.15.1