PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : GNU R Problem bei installation von rJava Package



CoolFire
11-04-2007, 12:56
Ich würde gerne bei GNU R das "rJava" Package installieren, bekomme jedoch folgende Fehlermeldung.



>install.packages("rJava",dep=TRUE)
--- Please select a CRAN mirror for use in this session ---
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

CRAN mirror

1: Australia (QLD) 2: Australia (VIC)
3: Austria 4: Brazil (PR)
5: Brazil (MG) 6: Brazil (RJ)
7: Brazil (SP 1) 8: Brazil (SP 2)
9: Canada (BC) 10: Canada (ON)
11: Chile (Santiago) 12: Chile (Valdivia)
13: China 14: Croatia
15: Czech Republic 16: Denmark
17: France (Toulouse) 18: France (Lyon)
19: France (Paris) 20: Germany (Frankfurt)
21: Germany (Hamburg) 22: Germany (Hannover)
23: Germany (Karlsruhe) 24: Germany (Koeln)
25: Germany (Mainz) 26: Germany (Muenchen)
27: Germany (Nuernberg) 28: Hungary
29: Italy (Arezzo 1) 30: Italy (Arezzo 2)
31: Italy (Ferrara) 32: Italy (Milano)
33: Italy (Padua) 34: Italy (Palermo)
35: Israel 36: Japan (Aizu)
37: Japan (Tokyo) 38: Japan (Tsukuba)
39: Korea 40: Netherlands (Amsterdam 1)
41: Netherlands (Amsterdam 2) 42: Norway
43: Poland (Lublin) 44: Poland (Wroclaw)
45: Portugal 46: Slovenia (Besnica)
47: Slovenia (Ljubljana) 48: South Africa (Cape Town)
49: South Africa (Grahamstown) 50: Spain (Alicante)
51: Spain (Madrid) 52: Sweden
53: Switzerland (Zuerich) 54: Switzerland (Bern 1)
55: Switzerland (Bern 2) 56: Turkey
57: Taiwan (Taichung) 58: Taiwan (Taipeh)
59: UK (Bristol) 60: UK (London)
61: USA (CA 1) 62: USA (CA 2)
63: USA (CA 3) 64: USA (IA)
65: USA (IL) 66: USA (MI)
67: USA (MO) 68: USA (NC)
69: USA (PA 1) 70: USA (PA 2)
71: USA (TX) 72: USA (WA)


Auswahl: 24
versuche URL 'http://cran.miscellaneousmirror.org/src/contrib/rJava_0.4-14.tar.gz'
Content type 'application/x-gzip' length 195829 bytes
URL geöffnet
==================================================
downloaded 191Kb

* Installing *source* package 'rJava' ...
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
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for java... /usr/bin/java
checking Java environment home... in /usr/java/jdk1.5.0_11/jre
checking for /usr/java/jdk1.5.0_11/jre/include/jni.h... no
checking for /usr/java/jdk1.5.0_11/jre/jni.h... no
checking for /usr/java/jdk1.5.0_11/jre/../include/jni.h... yes
checking for /usr/java/jdk1.5.0_11/jre/../include/./jni_md.h... no
checking for /usr/java/jdk1.5.0_11/jre/../include/linux/jni_md.h... yes
checking whether JNI programs can be compiled... yes
checking JNI data types... ok
checking whether JRI should be compiled (autodetect)... yes
checking whether debugging output should be enabled... no
checking whether threads support is requested... no
checking whether callbacks support is requested... no
checking whether JNI cache support is requested... no
checking whether JRI is requested... yes
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating R/zzz.R
config.status: creating src/config.h
=== configuring in jri (/tmp/R.INSTALL.Bj7818/rJava/jri)
configure: running /bin/sh ./configure '--prefix=/usr/local' --cache-file=/dev/null --srcdir=.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 java... /usr/java/jdk1.5.0_11/jre/bin/java
checking for javac... /usr/bin/javac
checking for javah... no
checking for jar... /usr/bin/jar
configure: error: one or more Java tools are missing.

*** JDK is incomplete! Please make sure you have a complete JDK. JRE is *not* sufficient.
configure: error: ./configure failed for jri
ERROR: configuration failed for package 'rJava'
** Removing '/usr/lib/R/library/rJava'

The downloaded packages are in
/tmp/RtmpbB2Qj0/downloaded_packages
Warning message:
installation of package 'rJava' had non-zero exit status in: install.packages("rJava", dep = TRUE)
>


Ich habe es mit j2sdk1.4.2_13, jdk1.5.0_11 und jdk1.6.0. Die Fehlermeldung bleibt die gleiche.

Für jede Idee wäre ausgesprochen dankbar!!! :)

PS: Java versionen sind mit "rpm" installiert.


XXX@xxx:/usr/java> dir
insgesamt 1
lrwxrwxrwx 1 root root 22 2007-04-11 13:45 default -> /usr/java/jdk1.5.0_11/
drwxr-xr-x 8 root root 408 2007-04-11 13:43 j2sdk1.4.2_13
drwxr-xr-x 9 root root 376 2007-04-11 13:24 jdk1.5.0_11
drwxr-xr-x 10 root root 472 2007-04-11 13:30 jdk1.6.0
lrwxrwxrwx 1 root root 18 2007-04-11 13:31 latest -> /usr/java/jdk1.6.0

CoolFire
11-04-2007, 14:14
checking for java... /usr/java/jdk1.5.0_11/jre/bin/java
checking for javac... /usr/bin/javac
checking for javah... no
checking for jar... /usr/bin/jar
configure: error: one or more Java tools are missing.

*** JDK is incomplete! Please make sure you have a complete JDK. JRE is *not* sufficient.
configure: error: ./configure failed for jri
ERROR: configuration failed for package 'rJava'
** Removing '/usr/lib/R/library/rJava'

The downloaded packages are in
/tmp/RtmpbB2Qj0/downloaded_packages
Warning message:
installation of package 'rJava' had non-zero exit status in: install.packages("rJava", dep = TRUE)


Der symbolische Link in /usr/bin/javah zu /usr/java/default/bin/javah hat gefehlt.
> ln -sv /usr/java/default/bin/javah /usr/bin/javah
Vielen Dank.