Sie sind nicht angemeldet.

1

15.06.2013, 01:45

Java Probleme

Hallo,

ich versuche seit Tagen den Fehler in meiner Java Installation zu finden. Der Befehl java-config arbeitet nicht und Instalaltionen brechen einfach ab. Ich benötige SWT, was leider nicht zu installieren ist. Ich bin nicht sicher, aber ich glaube es liegt an der Python Installation, java-config in der Python 2.7 vorhanden, in der 3.2. arbeitet es nicht.

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
gentoo-mobile ~ # java-config --help 

 Global options: 
   --verbose (-v)  run verbosely (default) 
   --quiet (-q)    run quietly (turns verbosity off) 
   --dry-run (-n)  don't actually do anything 
   --help (-h)     show detailed help message 

 Options for 'easy_install' command: 
   --prefix                       installation prefix 
   --zip-ok (-z)                  install package as a zipfile 
   --multi-version (-m)           make apps have to require() a version 
   --upgrade (-U)                 force upgrade (searches PyPI for latest 
                                  versions) 
   --install-dir (-d)             install package to DIR 
   --script-dir (-s)              install scripts to DIR 
   --exclude-scripts (-x)         Don't install scripts 
   --always-copy (-a)             Copy all needed packages to install dir 
   --index-url (-i)               base URL of Python Package Index 
   --find-links (-f)              additional URL(s) to search for packages 
   --delete-conflicting (-D)      no longer needed; don't use this 
   --ignore-conflicts-at-my-risk  no longer needed; don't use this 
   --build-directory (-b)         download/extract/build in DIR; keep the 
                                  results 
   --optimize (-O)                also compile with optimization: -O1 for 
                                  "python -O", -O2 for "python -OO", and -O0 to 
                                  disable [default: -O0] 
   --record                       filename in which to record list of installed 
                                  files 
   --always-unzip (-Z)            don't install as a zipfile, no matter what 
   --site-dirs (-S)               list of directories where .pth files work 
   --editable (-e)                Install specified packages in editable form 
   --no-deps (-N)                 don't install dependencies 
   --allow-hosts (-H)             pattern(s) that hostnames must match 
   --local-snapshots-ok (-l)      allow building eggs from local checkouts 
   --version                      print version information and exit 
   --no-find-links                Don't load find-links defined in packages 
                                  being installed 
   --user                         install in user site-package 
                                  '/root/.local/lib64/python3.2/site-packages' 

 usage: java-config-2 [options] requirement_or_url ... 
    or: java-config-2 --help


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
gentoo-mobile ~ # java-check-environment 
  * === 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 ...                                    [ ok ] 

  * Checking java_config_1 ...                                             [ ok ] 

  * Checking global_classpath ... 
 grep: /etc/env.d/binutils: Ist ein Verzeichnis 
 grep: /etc/env.d/cblas: Ist ein Verzeichnis 
 grep: /etc/env.d/gcc: Ist ein Verzeichnis 
 grep: /etc/env.d/python: Ist ein Verzeichnis                              [ ok ] 

  * Checking virtual_provides ...                                          [ ok ] 

  * Checking overlays_eclasses ...                                         [ ok ] 

  * Checking package_env ... 
 grep: /usr/share/*/package.env: Datei oder Verzeichnis nicht gefunden 
 grep: /usr/share/*/package.env: Datei oder Verzeichnis nicht gefunden     [ ok ] 

  * Checking proc_mounted ...                                              [ ok ] 

  * Java environment is sane. Congratulations!


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
>>> Failed to emerge dev-java/ant-core-1.8.4-r1, Log file: 

 >>>  '/var/tmp/portage/dev-java/ant-core-1.8.4-r1/temp/build.log' 

  * Messages for package dev-java/ant-core-1.8.4-r1: 

  * Unable to determine VM for building from dependencies: 
  * ERROR: dev-java/ant-core-1.8.4-r1 failed (setup phase): 
  *   Failed to determine VM for building. 
  * 
  * Call stack: 
  *             ebuild.sh, line   93:  Called pkg_setup 
  *             ebuild.sh, line  324:  Called java-pkg-2_pkg_setup 
  *     java-pkg-2.eclass, line   53:  Called java-pkg_init 
  *   java-utils-2.eclass, line 2187:  Called java-pkg_switch-vm 
  *   java-utils-2.eclass, line 2671:  Called die 
  * The specific snippet of code: 
  *                  die "Failed to determine VM for building." 
  * 
  * If you need support, post the output of `emerge --info '=dev-java/ant-core-1.8.4-r1'`, 
  * the complete build log and the output of `emerge -pqv '=dev-java/ant-core-1.8.4-r1'`. 
  * The complete build log is located at '/var/tmp/portage/dev-java/ant-core-1.8.4-r1/temp/build.log'. 
  * The ebuild environment file is located at '/var/tmp/portage/dev-java/ant-core-1.8.4-r1/temp/die.env'. 
  * Working directory: '/usr/lib64/portage/pym' 
  * S: '/var/tmp/portage/dev-java/ant-core-1.8.4-r1/work/apache-ant-1.8.4'


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
gentoo-mobile ~ # emerge --info =dev-java/ant-core-1.8.4-r1 
 Portage 2.1.12.2 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64) 
 ================================================================= 
                         System Settings 
 ================================================================= 
 System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_N550_@_1.50GHz-with-gentoo-2.2 
 KiB Mem:     1006208 total,    112416 free 
 KiB Swap:    2047996 total,   1992920 free 
 Timestamp of tree: Fri, 14 Jun 2013 21:30:01 +0000 
 ld GNU ld (GNU Binutils) 2.22 
 app-shells/bash:          4.2_p45 
 dev-java/java-config:     2.1.12-r1 
 dev-lang/python:          2.7.3-r3, 3.2.3-r2 
 dev-util/cmake:           2.8.10.2-r2 
 dev-util/pkgconfig:       0.28 
 sys-apps/baselayout:      2.2 
 sys-apps/openrc:          0.11.8 
 sys-apps/sandbox:         2.5 
 sys-devel/autoconf:       2.13, 2.69 
 sys-devel/automake:       1.10.3, 1.11.6, 1.12.6 
 sys-devel/binutils:       2.22-r1 
 sys-devel/gcc:            4.6.3 
 sys-devel/gcc-config:     1.7.3 
 sys-devel/libtool:        2.4-r1 
 sys-devel/make:           3.82-r4 
 sys-kernel/linux-headers: 3.7 (virtual/os-headers) 
 sys-libs/glibc:           2.15-r3 
 Repositories: gentoo 
 ACCEPT_KEYWORDS="amd64" 
 ACCEPT_LICENSE="* -@EULA" 
 CBUILD="x86_64-pc-linux-gnu" 
 CFLAGS="-O2 -march=atom -mtune=atom -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe" 
 CHOST="x86_64-pc-linux-gnu" 
 CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" 
 CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" 
 CXXFLAGS="-O2 -march=atom -mtune=atom -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe" 
 DISTDIR="/usr/portage/distfiles" 
 FCFLAGS="-O2 -pipe" 
 FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" 
 FFLAGS="-O2 -pipe" 
 GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/" 
 LANG="de_DE.UTF-8" 
 LDFLAGS="-Wl,-O1 -Wl,--as-needed" 
 MAKEOPTS="-j3" 
 PKGDIR="/usr/portage/packages" 
 PORTAGE_CONFIGROOT="/" 
 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" 
 PORTAGE_TMPDIR="/var/tmp" 
 PORTDIR="/usr/portage" 
 PORTDIR_OVERLAY="" 
 SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
 USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="intel_hda" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev void synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en ar fr" NGINX_MODULES_HTTP="access spdy addition auth_basic autoindex browser charset dav empty_gif fastcgi geo geoip gzip gzip_static perl headers_more limit_req limit_zone map memcached proxy push realip referer rewrite scgi split_clients ssi stub_status sub upload upstream_ip_hash userid uwsgi xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
 Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Quellcode

1
2
3
4
5
gentoo-mobile ~ # java-config --list-available-vms 
 usage: java-config-2 [options] requirement_or_url ... 
    or: java-config-2 --help 

 error: option --list-available-vms not recognized


Quellcode

1
2
3
4
gentoo-mobile ~ # eselect java-vm list 
 Available Java Virtual Machines: 
   [1]   icedtea-bin-6 
   [2]   oracle-jdk-bin-1.7  system-vm


Ich verstehe es nicht mehr. Ich habe deinstalliert, wieder installiert. Ich habe Python 3.2. deinstalliert, wieder installiert. Ich weiß nicht mehr was ich machen soll. Hat jemand Rat?


MFG
Silvio

2

15.06.2013, 03:39

Vermutlich wird es funktionieren wenn du deine system-vm auf die stabile icedtea-bin-6 setzt.

Aber ok, warten wir mal ab was die Kollegen im Crossposting Thread drauf antworten.