Sie sind nicht angemeldet.

1

04.07.2008, 01:12

Java will nicht mehr

Hallo. Ich habe folgendes Problem. Jedes Paket, daß ich emergen will und es java benötigt schließt mit einem Error.

Quellcode

1
die "Failed to determine VM for building

Ich habe bisher folgendes gemacht:
1. revdep-rebuild
2. sun-jdk und sun-jre-bin neuinstalliert.
3. eselect java-vm list -> plötzlich nichts mehr vorhanden. Eigenartig.
4. java-config -L bringt

Quellcode

1
ERROR: Expected to find /usr/bin/java-config-2

5. java-config-2 liegt in /etc/ und nicht in /usr/bin
6. dann in die make.conf editiert:

Quellcode

1
JAVA_HOME="/etc/java-config-2/current-system-vm"

7. java-check-environment bringt:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many
 * respects.
 * Please refer to our upgrade guide for details:
 *  	http://www.gentoo.org/proj/en/java/java-upgrade.xml

 * Checking fastjar ...                                               	[ ok ]

 * Checking vm_environment_files ...                                  	[ ok ]

 * Checking user_settings ...
 * Running as root. Don't need to check user settings.                	[ ok ]

 * Checking generation_1_system_vm ...
 * No Generation-1 System VM is set! (no /etc/env.d/20java)
Traceback (most recent call last):
  File "/usr/bin/java-config-1", line 14, in ?
	from java_config import jc_options
ImportError: No module named java_config
 * It doesn't look like java-config-1 sees any installed VMs.
 * It is most likely because you don't have a 1.4 JDK installed
 * This is required for generation-1 to work properly.
 * You will want to emerge =virtual/jdk-1.4*                          	[ !! ]

 * Some problems were found. Please follow the instructions above, and rerun jav
a-check-environment

Der sucht wohl in den falschen Verzeichnissen. Kann ja nicht sein. daß ich die Version 1.4 installieren soll. Ging vorher ja auch.

Dazu muß ich sagen, das Problem habe ich erst als ich versehentlich Python gelöscht hatte. Das habe ich folgender Maßen gelöst:

Quellcode

1
2
3
4
1. Python aus dem Internet geladen und entpackt
2. ./configure --prefix=/usr
3. make && make install
4. dann ging emerge wieder und vorsichthalber noch emerge python gemacht.

Vielleicht habe ich hier was vergessen oder falsch gemacht.

Ich hoffe ihr könnt mir da weiterhelfen.

MfG eddi

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »eddi1983« (04.07.2008, 20:56)


2

04.07.2008, 05:37

5. java-config-2 liegt in /etc/ und nicht in /usr/bin

das ist auch korrekt so, bei mir schaut es so aus

Quellcode

1
2
3
4
5
$ ls -l /etc/java-config-2
total 4
drwxr-xr-x 2 root root 104  3. Jul 03:32 build
lrwxrwxrwx 1 root root  24  7. Jun 00:09 current-system-vm -> /usr/lib/jvm/sun-jdk-1.6
-rw-r--r-- 1 root root  61 28. Apr 01:35 virtuals

Sind die USE-Flags "java" und evtl. "javascript" gesetzt?

als ich versehentlich Python gelöscht hatte.
Schau doch mal ob

Quellcode

1
# python-updater
was zu korrigieren hat.

MfG
josef.95

3

04.07.2008, 10:54

Ein re-

Quellcode

1
# emerge -1 java-config java-config-wrapper
bringt auch keiner Linderung?
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

4

04.07.2008, 11:13

1. Java habe ich als USE-flag. Javascript nicht. Glaube nicht das die nötig ist. Das hängt wohl mit Python zusamen. Dazu später (Punkt 4).
2. ls -l /etc/java-config-2 bringt:

Quellcode

1
2
3
4
insgesamt 8
drwxr-xr-x 2 root root 4096 29. Jun 13:55 build
lrwxrwxrwx 1 root root   24 29. Jun 13:59 current-system-vm -> /usr/lib/jvm/sun-jdk-1.6
-rw-r--r-- 1 root root   61 28. Apr 01:35 virtuals

3. python-updater

Quellcode

1
 * Can't determine any previous Python version(s).

4. emerge -av1 java-config java-config-wrapper
java-config kommt ohne Probleme durch. Bei java-config-wrapper kommt auch duch aber mit folgender Meldung:

Quellcode

1
 * //usr/lib/python2.4/site-packages/java_config_2 doesn't exist!


Also das muß wohl irgendwas mit Python zu tun habe.

Ein emerge -e world habe ich auch schon mal durchlaufen lasssen. Bis auf die Pakete die java benötigen ging alles einwandfrei.

5

04.07.2008, 12:30

Hast du überprüft, ob du dieses Verzeichnis tatsächlich nicht hast?

Es ist Bestandteil des java-config, welches vorher lt. deinen Angaben ohne Probleme durchlief. Das kann so nicht sein. Was hat java-config installiert?

Welche Python-Version hast du laufen?

Und wg. python-updater:

Quellcode

1
2
3
4
5
6
7
# python-updater --help
usage: python-updater [-h|-p|-o X.X|-n X.X]
 --help, -h             help
 --pretend, -p          pretend (don't do anything)
 --old-version, -o  X.X set old python version to upgrade from [default: ]
 --ignore-versions, -i  ignore versions when remerging packages (still respects SLOTs)
 --package-manager, -P name     select between portage pkgcore paludis [default: portage]


vlr Option "-i" und "-p" mal gucken ... ?
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

6

04.07.2008, 12:47

Zitat

Hast du überprüft, ob du dieses Verzeichnis tatsächlich nicht hast?
//usr/lib/python2.4/site-packages gibts. dort ist aber keine java-config-2 enthalten.

Zitat

Was hat java-config installiert?

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
>>> Merging dev-java/java-config-2.1.6 to /
--- /etc/
--- /etc/java-config-2/
>>> /etc/java-config-2/virtuals
--- /etc/java-config-2/build/
>>> /etc/java-config-2/build/jdk.conf
>>> /etc/java-config-2/build/compilers.conf
--- /etc/env.d/
>>> /etc/env.d/20java-config
--- /etc/revdep-rebuild/
>>> /etc/revdep-rebuild/60-java
--- /etc/profile.d/
>>> /etc/profile.d/java-config-2.sh
>>> /etc/profile.d/java-config-2.csh
--- /usr/
--- /usr/share/
--- /usr/share/java-config-2/
--- /usr/share/java-config-2/config/
>>> /usr/share/java-config-2/config/jdk-defaults.conf
--- /usr/share/doc/
--- /usr/share/doc/java-config-2.1.6/
>>> /usr/share/doc/java-config-2.1.6/PKG-INFO.bz2
>>> /usr/share/doc/java-config-2.1.6/TODO.bz2
>>> /usr/share/doc/java-config-2.1.6/ChangeLog.bz2
>>> /usr/share/doc/java-config-2.1.6/NEWS.bz2
>>> /usr/share/doc/java-config-2.1.6/README.bz2
--- /usr/local/
--- /usr/local/share/
--- /usr/local/share/mimelnk/
--- /usr/local/share/mimelnk/application/
>>> /usr/local/share/mimelnk/application/x-java-jnlp-file.desktop
--- /usr/local/share/java-config-2/
--- /usr/local/share/java-config-2/launcher/
>>> /usr/local/share/java-config-2/launcher/launcher.bash
--- /usr/local/share/java-config-2/pym/
--- /usr/local/share/java-config-2/pym/java_config/
--- /usr/local/share/pixmaps/
>>> /usr/local/share/pixmaps/java-icon48.png
--- /usr/local/share/icons/
--- /usr/local/share/icons/hicolor/
--- /usr/local/share/icons/hicolor/48x48/
--- /usr/local/share/icons/hicolor/48x48/mimetypes/
>>> /usr/local/share/icons/hicolor/48x48/mimetypes/application-x-java-jnlp-file.png
--- /usr/local/share/applications/
>>> /usr/local/share/applications/javaws.desktop
--- /usr/local/share/eselect/
--- /usr/local/share/eselect/modules/
>>> /usr/local/share/eselect/modules/java-nsplugin.eselect
>>> /usr/local/share/eselect/modules/java-vm.eselect
--- /usr/local/lib/
--- /usr/local/lib/python2.4/
--- /usr/local/lib/python2.4/site-packages/
--- /usr/local/lib/python2.4/site-packages/java_config_2/
>>> /usr/local/lib/python2.4/site-packages/java_config_2/Errors.py
>>> /usr/local/lib/python2.4/site-packages/java_config_2/EnvironmentManager.py
>>> /usr/local/lib/python2.4/site-packages/java_config_2/Virtual.py
>>> /usr/local/lib/python2.4/site-packages/java_config_2/FileParser.py
>>> /usr/local/lib/python2.4/site-packages/java_config_2/__init__.py
>>> /usr/local/lib/python2.4/site-packages/java_config_2/VersionManager.py
>>> /usr/local/lib/python2.4/site-packages/java_config_2/VM.py
>>> /usr/local/lib/python2.4/site-packages/java_config_2/OutputFormatter.py
>>> /usr/local/lib/python2.4/site-packages/java_config_2/Package.py
--- /usr/local/bin/
>>> /usr/local/bin/java-config-2
>>> /usr/local/bin/keytool -> run-java-tool
>>> /usr/local/bin/javap -> run-java-tool
>>> /usr/local/bin/gjl
>>> /usr/local/bin/apt -> run-java-tool
>>> /usr/local/bin/javac -> run-java-tool
>>> /usr/local/bin/java -> run-java-tool
>>> /usr/local/bin/jconsole -> run-java-tool
>>> /usr/local/bin/jdb -> run-java-tool
>>> /usr/local/bin/javadoc -> run-java-tool
>>> /usr/local/bin/rmic -> run-java-tool
>>> /usr/local/bin/appletviewer -> run-java-tool
>>> /usr/local/bin/run-java-tool
>>> /usr/local/bin/rmiregistry -> run-java-tool
>>> /usr/local/bin/depend-java-query
>>> /usr/local/bin/jar -> run-java-tool
>>> /usr/local/bin/rmid -> run-java-tool
>>> /usr/local/bin/jarsigner -> run-java-tool
>>> /usr/local/bin/javah -> run-java-tool

Meinst du das damit?

eix dev-lang/python

Quellcode

1
2
3
4
5
6
7
8
9
[I] dev-lang/python
     Available versions:  
        (2.3)   [M]2.3.5-r2 [M]2.3.5-r3 [M]~2.3.6 [M]2.3.6-r3 [M]2.3.6-r6
        (2.4)   2.4.4-r5 2.4.4-r6 2.4.4-r13
        (2.5)   ~2.5.2-r5
        {+cxx +threads berkdb bootstrap build doc elibc_uclibc examples gdbm ipv6 ncurses nocxx nothreads readline sqlite ssl tk ucs2 wininst}
     Installed versions:  2.4.4-r13(2.4)(22:43:34 03.07.2008)(berkdb cxx gdbm ncurses readline ssl threads -bootstrap -build -doc -elibc_uclibc -examples -ipv6 -tk -ucs2 -wininst)
     Homepage:            http://www.python.org/
     Description:         Python is an interpreted, interactive, object-oriented programming language.


python-updater -p

Quellcode

1
 * Can't determine any previous Python version(s).

python-updater -i

Quellcode

1
 * Can't determine any previous Python version(s).

7

04.07.2008, 13:03

Da ist dein Problem: /usr/local/...

Der installiert dir alles in /usr/local ... das ist grundfalsch. Wie kommt das?

Hast du irgendwelche python-reste in /usr/local liegen? Was sagt

Quellcode

1
# which python
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

8

04.07.2008, 13:14

Hmm. In /usr/local liegt das was ich oben angegeben habe.

wich python gibt

Quellcode

1
/usr/bin/python

9

04.07.2008, 13:25

Hmm. In /usr/local liegt das was ich oben angegeben habe.

Ja, ja. Eben!

Zitat

wich python gibt

Quellcode

1
/usr/bin/python

.. und wo zeigt das hin? (Ist ja ein sym-link ...)

Gib mal ein "emerge --info" durch bitte ...
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

10

04.07.2008, 13:29

emerge --info

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.3.1, glibc-2.7-r2, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz
Timestamp of tree: Tue, 01 Jul 2008 15:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 	3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python: 	2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 	2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:	1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo"
LANG="de_DE.iso88591"
LC_ALL="de_DE.iso88591"
LINGUAS="de"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl alsa avi berkdb cdparanoia cdr cli cracklib crypt cups dbus divx dri dv dvd dvdr dvdread encode ffmpeg flash fortran gdbm gpm gtk hal iconv isdnlog jack java jpeg kde lame live mad midi mjpeg mp2 mp3 mudflap ncurses nls nptl nptlonly ogg openmp pam pcre perl png pppd python qt3 quicktime readline real reflection samba session spl ssl tcpd unicode usb vcd vidix vorbis wav win32codecs x86 xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


ls -l /usr/bin (Auszug)

Quellcode

1
2
3
4
5
6
-rwxr-xr-x 1 root root    	75  3. Jul 22:43 pydoc2.4
lrwxrwxrwx 1 root root     	9  3. Jul 22:43 python -> python2.4
lrwxrwxrwx 1 root root     	9  3. Jul 22:43 python2 -> python2.4
-rwxr-xr-x 1 root root  	5352  3. Jul 22:43 python2.4
lrwxrwxrwx 1 root root    	17  3. Jul 22:43 python-config -> python-config-2.4
-rwxr-xr-x 1 root root  	1624  3. Jul 22:43 python-config-2.4

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »eddi1983« (04.07.2008, 14:10)


11

04.07.2008, 20:29

Da ist dein Problem: /usr/local/...

Der installiert dir alles in /usr/local ... das ist grundfalsch. Wie kommt das?

Hast du irgendwelche python-reste in /usr/local liegen? ...


Hast du?
Da habe ich noch keine Antwort drauf ...

Es klingt irgendwie als hättest du ein /usr/local/bin/python ... wenn ja: weg damit und alles andere auch was in /usr/local nach einer python installation riecht ...
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

12

04.07.2008, 20:56

Ahh. Einfach löschen 8o
Hat geklappt. Jedenfalls ging java-config und java-config-wrapper problemlos durch. Auch der Befehl java-config funktioniert wieder.
Außerdem kann ich die Pakete mit Java-Abhängigkeit jetzt auch emergen.

Vielen Dank.