LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-11-2005, 06:46 AM   #1
xcalibra
LQ Newbie
 
Registered: Jul 2004
Distribution: suse 9.1 pro, gentoo
Posts: 15

Rep: Reputation: 0
emerge error in gentoo


When I try to update my system, I've got the following error:

*************************************************************************************************
# emerge --update world
Calculating world dependencies ...done!
>>> emerge (1 of 62) net-dns/libidn-0.5.15 to /
>>> md5 files ;-) libidn-0.5.4.ebuild
>>> md5 files ;-) libidn-0.5.15.ebuild
>>> md5 files ;-) libidn-0.5.18.ebuild
>>> md5 files ;-) files/digest-libidn-0.5.4
>>> md5 files ;-) files/digest-libidn-0.5.15
>>> md5 files ;-) files/digest-libidn-0.5.18
>>> md5 src_uri ;-) libidn-0.5.15.tar.gz
>>> Unpacking source...
>>> Unpacking libidn-0.5.15.tar.gz to /var/tmp/portage/libidn-0.5.15/work
>>> Source unpacked.
Traceback (most recent call last):
File "/usr/bin/java-config", line 14, in ?
from java_config import jc_options
ImportError: No module named java_config

!!! ERROR: net-dns/libidn-0.5.15 failed.
!!! Function src_compile, Line 25, Exitcode 0
!!! You need to use java-config to set your JVM to a JDK!

*************************************************************************************************

The java-config 1.2.11 is already installed, so I try to edit /usr/bin/java-config.
The problem lines are :

*************************************************************************************************

import sys, getopt, os
from java_config import jc_options
from java_config.jc_output import *

*************************************************************************************************

I don't know what to do now, no ideas.

Regards.
 
Old 10-11-2005, 07:05 AM   #2
xcalibra
LQ Newbie
 
Registered: Jul 2004
Distribution: suse 9.1 pro, gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
In addition, I try:

# /usr/sbin/env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...


# java-config --list-available-vms
Traceback (most recent call last):
File "/usr/bin/java-config", line 14, in ?
from java_config import jc_options
ImportError: No module named java_config


The problem still the same...
 
Old 10-11-2005, 07:36 AM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Have you tried updating java-config?

# emerge -U java-config
 
Old 10-15-2005, 04:47 AM   #4
xcalibra
LQ Newbie
 
Registered: Jul 2004
Distribution: suse 9.1 pro, gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
yes, I try this command already.
The errors are:

>>> emerge (7 of 74) net-dns/libidn-0.5.15 to /
>>> md5 files ;-) libidn-0.5.4.ebuild
>>> md5 files ;-) libidn-0.5.15.ebuild
>>> md5 files ;-) libidn-0.5.18.ebuild
>>> md5 files ;-) files/digest-libidn-0.5.4
>>> md5 files ;-) files/digest-libidn-0.5.15
>>> md5 files ;-) files/digest-libidn-0.5.18
>>> md5 src_uri ;-) libidn-0.5.15.tar.gz
>>> Unpacking source...
>>> Unpacking libidn-0.5.15.tar.gz to /var/tmp/portage/libidn-0.5.15/work
>>> Source unpacked.
Traceback (most recent call last):
File "/usr/bin/java-config", line 14, in ?
from java_config import jc_options
ImportError: No module named java_config

!!! ERROR: net-dns/libidn-0.5.15 failed.
!!! Function src_compile, Line 25, Exitcode 0
!!! You need to use java-config to set your JVM to a JDK!
 
Old 10-15-2005, 05:06 AM   #5
xcalibra
LQ Newbie
 
Registered: Jul 2004
Distribution: suse 9.1 pro, gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
yup, I got my problem fixed. I unmerge the sun-jdk and java-config then emerge them again.
Emerge java-config first, then the sun-jdk.
I found this stuff for reference.

**************************************************************************************************** ***********
If you need to run Java on GNU/Linux running on Sparc64 hardware, your best bet is to get the Blackdown source. This is easy with Gentoo:

srv-1 opt # emerge jdk
Calculating dependencies ...done!
>>> emerge (1 of 2) dev-java/java-config-1.2.11 to /
>>> Downloading http://distfiles.gentoo.org/distfile...1.2.11.tar.bz2
--10:00:21-- http://distfiles.gentoo.org/distfile...1.2.11.tar.bz2
=> `/usr/portage/distfiles/java-config-1.2.11.tar.bz2'
Resolving distfiles.gentoo.org... 216.165.129.135, 64.50.236.52, 156.56.247.195
Connecting to distfiles.gentoo.org[216.165.129.135]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15,743 [application/x-tar]

100%[====================================>] 15,743 95.77K/s

10:00:21 (95.60 KB/s) - `/usr/portage/distfiles/java-config-1.2.11.tar.bz2'
saved [15,743/15,743]

>>> md5 files ;-) java-config-1.2.10.ebuild
>>> md5 files ;-) java-config-1.2.11.ebuild
>>> md5 files ;-) java-config-1.2.6.ebuild
.
.
.
No JAVA_HOME available! Please set your Java Virtual Machine
No JAVA_HOME available! Please set your Java Virtual Machine
No JAVA_HOME available! Please set your Java Virtual Machine
No JAVA_HOME available! Please set your Java Virtual Machine
THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND
System Virtual Machine set
You may want to update your enviroment by running:
"/usr/sbin/env-update && source /etc/profile"
>>> Regenerating /etc/ld.so.cache...

* After installing blackdown-jdk-1.4.1 this
* was set as the default JVM to run.
* When finished please run the following so your
* enviroment gets updated.
* /usr/sbin/env-update && source /etc/profile
* Or use java-config program to set your preferred VM
>>> Regenerating /etc/ld.so.cache...
>>> dev-java/blackdown-jdk-1.4.1-r1 merged.
>>> Recording dev-java/blackdown-jdk in "world" favorites file...

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


* Regenerating GNU info directory index...
* Processed 12 info files.
* IMPORTANT: 78 config files in /etc need updating.
* Type emerge --help config to learn how to update config files.

srv-1 opt #


If we log on and off, though:

srv-1 ~ # set | grep JAVA
JAVAC=/opt/blackdown-jdk-1.4.1/bin/javac
JAVA_HOME=/opt/blackdown-jdk-1.4.1
srv-1 ~ #
 
Old 10-17-2005, 02:21 AM   #6
tolltroll
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
additional comment

Thanks for your valuable advice. I had exactly the same problem.
Seems like there is a dependecy for the python packages unresolved. So i tried exactly what u suggested:

#emerge --unmerge sun-jdk
#emerge --unmerge java-config
#emerge java-config
#emerge sun-jdk
#etc-update && env-update

and i could proceed with the update process.

Thanks pal.
 
Old 10-17-2005, 06:35 AM   #7
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
If you find stuff like that it might be worth while letting them know at bugs.gentoo.org.
 
Old 11-05-2005, 12:22 PM   #8
barnardgj
LQ Newbie
 
Registered: Oct 2005
Location: Johannesburg, South Africa
Distribution: Gentoo AMD64
Posts: 3

Rep: Reputation: 0
What would Dummy's like us have done without guys like you. I had the same problem and after followed your advice, problem solved
 
Old 11-05-2005, 12:25 PM   #9
barnardgj
LQ Newbie
 
Registered: Oct 2005
Location: Johannesburg, South Africa
Distribution: Gentoo AMD64
Posts: 3

Rep: Reputation: 0
Sorry, I forgot to thank you. Thanks a lot
 
Old 11-20-2005, 12:00 PM   #10
javajim
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
for it worked fine, when i just re-emerged java-config:

#emerge --unmerge java-config
#emerge java-config
#etc-update && env-update

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pkg-config error with emerge -aD gnome-python on Gentoo 2.6.9-gentoo-r6 ghrellin Linux - Software 2 12-22-2004 06:37 PM
gentoo emerge gconf error besson3c Linux - Distributions 2 12-20-2004 01:01 PM
Gentoo libgpg-error-1.0 emerge problem ahh Linux - Software 2 09-21-2004 05:19 PM
Gentoo - Stage3 emerge profile error dkaplowitz Linux - Distributions 1 11-20-2003 03:00 PM
gentoo emerge kde error busbarn Linux - Software 2 03-08-2003 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration