Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't run java-config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 169

PostPosted: Sun Apr 26, 2009 8:16 am    Post subject: Can't run java-config Reply with quote

When I try to emerge packages like subversion and xulrunner I get:
Code:
* Can't run java-config --help
 * Have you upgraded python recently but haven't
 * run python-updater yet?
 *
 * ERROR: net-libs/xulrunner-1.9.0.9 failed.
 * Call stack:
 *                  ebuild.sh, line   48:  Called pkg_setup
 *   xulrunner-1.9.0.9.ebuild, line   54:  Called java-pkg-opt-2_pkg_setup
 *      java-pkg-opt-2.eclass, line   45:  Called java-pkg_init
 *        java-utils-2.eclass, line 2105:  Called die
 * The specific snippet of code:
 *         die "Can't run java-config --help"
 *  The die message:
 *   Can't run java-config --help
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-libs/xulrunner-1.9.0.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/xulrunner-1.9.0.9/temp/die.env'.
 *


And when trying to run java-config manually I get:
Code:
# java-config
Traceback (most recent call last):
  File "/usr/bin/java-config-2", line 8, in <module>
    from java_config_2 import __version__
ImportError: No module named java_config_2


emerge --info:
Code:
# emerge --info
Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8200_@_2.66GHz-with-gentoo-2.0.0
Timestamp of tree: Sat, 25 Apr 2009 21:15:01 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2, 2.6.2
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=core2 -msse3 -O2"
CHOST="x86_64-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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-pipe -march=core2 -msse3 -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://trumpetti.atm.tut.fi/gentoo/"
LANG="sv_SE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="sv sv_SE"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi alsa amd64 amrnb amrwb apache2 arts authdaemond berkdb bitmap-fonts bonobo browserplugin bzip2 cairo cdda cddb cdio cdparanoia cdr cgi cli cracklib crypt ctype cups curl dba dbus dri dts dvd dvdr dvdread emerald encode esd filter firefox flac flash fortran freetype ftp gd gdbm gimp glib glitz gpm gtk gtk2 hal iconv ipv6 isdnlog ivtv java javascript jpeg libcaca libv4l2 lm_sensors mad midi mmx mp3 mpeg mpg msn mudflap multilib musepack mysql mysqli ncurses nls nptl nptlonly nsplugin nvidia opengl openmp pam panel-plugin pango pcre pdf pear perl plugins png pppd python qt3 qt4 quicktime rc5 readline reflection rtc sasl sdl session smp sockets spl sse sse2 sse3 sse4 ssl suid svg sysfs tcpd tiff trash-panel-plugin truetype truetype-fonts type1 type1-fonts unicode usb utempter v4l v4l2 vhosts vlm wmf xanim xml xorg xv xvid xvmc yv12" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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="sv sv_SE" USERLAND="GNU" VIDEO_CARDS="nv nvidia%"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


python-update:
Code:
# python-updater
* Couldn't determine portage python


Any suggestions about where I have f***ed up? :lol:
_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
slackline
Veteran
Veteran


Joined: 01 Apr 2005
Posts: 1471
Location: /uk/sheffield

PostPosted: Sun Apr 26, 2009 8:31 am    Post subject: Reply with quote

Have you recently upgraded your Java install?

There is the following news item that may be relevant....

Code:

# eselect news read 2009-04-18-java-config-wrapper-0.16
2009-04-18-java-config-wrapper-0.16
  Title                      Generation 1 Java Setup Deprecated
  Author                     Petteri Räty <betelgeuse@gentoo.org>
  Posted                     2009-04-18
  Revision                   2

For a long time the Java team required a 1.4 JDK to be
installed in order for old java ebuilds to work. All these
ebuilds are now gone from the main tree so the requirement
to have a 1.4 JDK installed has been lifted.

In order to remove things left over by the generation 1
setup please run java-check-environment and follow the
instructions.

If you want to remove 1.4 JDKs, you should use emerge --depclean.
Depending on what you have installed you might not need a
1.4 JDK any more. To see if you still need a 1.4 JDK use:

emerge -av --depclean virtual/jdk:1.4

If you don't need virtual/jdk:1.4 any more then you can remove the
individual JDKs. First get the list of installed JDKs with
eselect and then remove those that are not needed any longer with
depclean, for example:

eselect java-vm list
emerge -av --depclean sun-jdk:1.4

_________________
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 169

PostPosted: Sun Apr 26, 2009 9:46 am    Post subject: Reply with quote

Thank you for the hint. :) You are right, I have updated java but as I did that long ago and have not rebooted or updated world for a while i did not thought that was the problem.

Now I have come a bit further. I got rid of 1.4.x java but not exactly as that "eselect news" is mentioning. I cannot run "emerge --depclean" for some reason I have not yet figure out...
_________________
QX9650, P5E64WS Pro, 4x1GB
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 683

PostPosted: Sun Apr 26, 2009 5:37 pm    Post subject: Reply with quote

try running 'emerge -uND world --with-bdeps y' to let you run emerge --depclean
try running 'emerge -1 python-updater java-config' to fix python-updater and java-config

if those don't work, try running 'revdep-rebuild' -- sometimes it will fix issues with python, it might get python-updater to work. If you do get python-updater working, run it, and force versions including everything up to and including your current version. So 'python-updater -o 2.5' followed by 'python-updater -o 2.6'. If there's a chance you still have stuff from python-2.4, run 'python-updater -o 2.4' too.

if it still doesn't work, do 'emerge -e world --keep-going'.
Back to top
View user's profile Send private message
stan666
Apprentice
Apprentice


Joined: 25 Jun 2007
Posts: 165
Location: Germany

PostPosted: Fri May 01, 2009 7:52 pm    Post subject: Reply with quote

on my machine a simple call of
Quote:

python-updater

solved the problem
_________________
BOFH Excuse #450:
Terrorists crashed an airplane into the server room, have to remove /bin/laden. (rm -rf /bin/laden)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum