Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Can't run java-config

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
blossa
Apprentice
Apprentice
Posts: 169
Joined: Thu Jan 13, 2005 11:05 pm

Can't run java-config

  • Quote

Post by blossa » Sun Apr 26, 2009 8:16 am

When I try to emerge packages like subversion and xulrunner I get:

Code: Select all

* 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: Select all

# 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: Select all

# 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: Select all

# python-updater 
* Couldn't determine portage python
Any suggestions about where I have f***ed up? :lol:
QX9650, P5E64WS Pro, 4x1GB
Top
slackline
Veteran
Veteran
User avatar
Posts: 1479
Joined: Fri Apr 01, 2005 7:22 pm
Location: /uk/sheffield
Contact:
Contact slackline
Website

  • Quote

Post by slackline » Sun Apr 26, 2009 8:31 am

Have you recently upgraded your Java install?

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

Code: Select all

# 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
Top
blossa
Apprentice
Apprentice
Posts: 169
Joined: Thu Jan 13, 2005 11:05 pm

  • Quote

Post by blossa » Sun Apr 26, 2009 9:46 am

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
Top
pigeon768
l33t
l33t
Posts: 683
Joined: Mon Jan 02, 2006 1:13 pm

  • Quote

Post by pigeon768 » Sun Apr 26, 2009 5:37 pm

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'.
Top
stan666
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Mon Jun 25, 2007 6:20 pm
Location: Germany
Contact:
Contact stan666
Website

  • Quote

Post by stan666 » Fri May 01, 2009 7:52 pm

on my machine a simple call of
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)
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic