[R] install rJava in linux

Grześ gregorio99 at gmail.com
Fri Mar 5 10:41:31 CET 2010


Hi 
I'm a problem with installing "rJava" in Linux

I have got in my system : java-sun, java-sun-tools, java-sun-jre 
but if I wont install rJava I got a problem like this:

>  install.packages("rJava", dependencies = TRUE)
--- Please select a CRAN mirror for use in this session ---
trying URL 'http://cran.mirroring.de/src/contrib/rJava_0.8-2.tar.gz'
Content type 'application/x-gzip' length 471971 bytes (460 Kb)
opened URL
==================================================
downloaded 460 Kb

* installing *source* package ‘rJava’ ...
checking for gcc... i686-pld-linux-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 i686-pld-linux-gcc -std=gnu99 accepts -g... yes
checking for i686-pld-linux-gcc -std=gnu99 option to accept ISO C89... none
needed
checking how to run the C preprocessor... i686-pld-linux-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 i686-pld-linux-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    : ''
header prep.: ''
cpp flags   : '~autodetect~'
java libs   : '-L/usr/lib/jvm/java-sun-1.6.0.18/jre/lib/i386/server
-L/usr/lib/jvm/java-sun-1.6.0.18/jre/lib/i386
-L/usr/lib/jvm/java-sun-1.6.0.18/jre/../lib/i386 -L
-L/usr/java/packages/lib/i386 -L/lib -L/usr/lib -ljvm'
configure: error: Java Development Kit (JDK) is missing or not registered in
R
Make sure R is configured with full Java support (including JDK). Run
R CMD javareconf
as root to add Java support to R.

If you don't have root privileges, run
R CMD javareconf -e
to set all Java-related variables and then install rJava.

ERROR: configuration failed for package ‘rJava’
* removing ‘/usr/lib/R/library/rJava’

The downloaded packages are in
	‘/root/tmp/RtmpA0Qvcf/downloaded_packages’
Updating HTML index of packages in '.Library'
Warning message:
In install.packages("rJava", dependencies = TRUE) :
  installation of package 'rJava' had non-zero exit status
> 
 What is wrong?
-- 
View this message in context: http://n4.nabble.com/install-rJava-in-linux-tp1579395p1579395.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list