R 安装包问题

待解决

install.packages("rJava")
trying URL 'http://cran.rstudio.com/src/contrib/rJava_0.9-4.tar.gz'
Content type 'application/x-gzip' length 498108 bytes (486 Kb)
opened URL
==================================================
downloaded 486 Kb

* installing *source* package ‘rJava’ ...
** package ‘rJava’ successfully unpacked and MD5 sums checked
checking for gcc... gcc -std=gnu99
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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/local/jrockit-jdk1.6.0_29/jre/bin/java'
archiver    : '/usr/local/jrockit-jdk1.6.0_29/bin/jar'
compiler    : '/usr/local/jrockit-jdk1.6.0_29/bin/javac'
header prep.: '/usr/local/jrockit-jdk1.6.0_29/bin/javah'
cpp flags   : '-I/usr/local/jrockit-jdk1.6.0_29/include -I/usr/local/jrockit-jdk1.6.0_29/include/linux'
java libs   : '-L/usr/local/jrockit-jdk1.6.0_29/jre/lib/amd64/jrockit -ljvm'
checking whether JNI programs can be compiled...
configure: error: Cannot compile a simple JNI program. See config.log for details.

Make sure you have Java Development Kit installed and correctly registered in R.
If in doubt, re-run "R CMD javareconf" as root.

ERROR: configuration failed for package ‘rJava’
* removing ‘/home/qiulp/r/R-3.0.1/library/rJava’
Warning in install.packages :
  installation of package ‘rJava’ had non-zero exit status

The downloaded source packages are in
‘/tmp/Rtmp6Co4rj/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

猜你喜欢

转载自lookqlp.iteye.com/blog/1968374
今日推荐