Forums

Skip to content

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

sys-libs/db won't emerge

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
B-one
n00b
n00b
Posts: 59
Joined: Mon Mar 24, 2008 10:51 pm
Location: France

sys-libs/db won't emerge

  • Quote

Post by B-one » Wed Oct 01, 2008 3:35 pm

When updating world, i get the following error :

Code: Select all

* Messages for package sys-libs/db-4.5.20_p2-r1:

 * Unable to determine VM for building from dependencies:
 *
 * ERROR: sys-libs/db-4.5.20_p2-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *               ebuild.sh, line 1244:  Called java-pkg-opt-2_pkg_setup
 *   java-pkg-opt-2.eclass, line   44:  Called java-pkg_init
 *     java-utils-2.eclass, line 2090:  Called java-pkg_switch-vm
 *     java-utils-2.eclass, line 2516:  Called die
 * The specific snippet of code:
 *                              die "Failed to determine VM for building."
 *  The die message:
 *   Failed to determine VM for building.
I have been trying emerge --depclean, revdep-rebuild but the error is still here :?

Thanks for your help ^^
Top
loki_val
Retired Dev
Retired Dev
Posts: 418
Joined: Mon Nov 13, 2006 11:03 am
Location: Denmark

  • Quote

Post by loki_val » Wed Oct 01, 2008 4:15 pm

what does

Code: Select all

eselect java-vm list
say? If it lists some choices, choose the newest one and do

Code: Select all

eselect java-vm set VM
where VM might be sun-jdk-1.6 or some such.
Top
B-one
n00b
n00b
Posts: 59
Joined: Mon Mar 24, 2008 10:51 pm
Location: France

  • Quote

Post by B-one » Wed Oct 01, 2008 7:32 pm

When i type eselect java-vm list i get:

Code: Select all

Available Java Virtual Machines:
  [1]   blackdown-jdk-1.4.2
  [2]   sun-jdk-1.6  system-vm
eselect java-vm show :

Code: Select all

Current system-vm
  sun-jdk-1.6
Current user-vm
  (unset)
when i try to type eselect java-vm set 1/2 i get this error:

Code: Select all

!!! Error: Usage [user|system] [vm]
Killed
EDIT: ok, i managed to chang it from sun-jdk to blackdown-jdk but db emerge still fails. :cry:

this is the detailed error, maybe it will help:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/depend-java-query", line 8, in <module>
    from java_config_2 import __version__
ImportError: No module named java_config_2
 * Unable to determine VM for building from dependencies:
NV_DEPEND: tcl? ( >=dev-lang/tcl-8.4 )
        java? ( >=virtual/jdk-1.4 )
        >=sys-devel/binutils-2.16.1  test? ( >=dev-lang/tcl-8.4 ) java? ( >=dev-java/java-config-2.0.33-r1 >=sys-apps/portage-2.1.2.7 ) =sys-devel/automake-1.10*
        >=sys-devel/autoconf-2.61
        sys-devel/libtool
VNEED:
 *
 * ERROR: sys-libs/db-4.5.20_p2-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *               ebuild.sh, line 1244:  Called java-pkg-opt-2_pkg_setup
 *   java-pkg-opt-2.eclass, line   44:  Called java-pkg_init
 *     java-utils-2.eclass, line 2090:  Called java-pkg_switch-vm
 *     java-utils-2.eclass, line 2516:  Called die
 * The specific snippet of code:
 *                              die "Failed to determine VM for building."
 *  The die message:
 *   Failed to determine VM for building.
Top
B-one
n00b
n00b
Posts: 59
Joined: Mon Mar 24, 2008 10:51 pm
Location: France

  • Quote

Post by B-one » Thu Oct 02, 2008 11:39 am

up :o
Top
askoff
Tux's lil' helper
Tux's lil' helper
Posts: 77
Joined: Thu Apr 15, 2004 7:27 pm

  • Quote

Post by askoff » Thu Oct 02, 2008 2:32 pm

I have the same problem.
Top
Carlo
Developer
Developer
User avatar
Posts: 3356
Joined: Mon Aug 12, 2002 10:57 pm

  • Quote

Post by Carlo » Thu Oct 02, 2008 2:54 pm

B-one wrote:EDIT: ok, i managed to chang it from sun-jdk to blackdown-jdk but db emerge still fails. :cry:
Unless you really know what you do, you don't want to use the Blackdown JDK.

Most likely you updated to Python 2.5, but didn't run the python-updater script afterwards as you are held to. Hint: If this is the case and you unmerged Python 2.4 in between, make sure to make use of the relevant options this script provides.
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Top
B-one
n00b
n00b
Posts: 59
Joined: Mon Mar 24, 2008 10:51 pm
Location: France

  • Quote

Post by B-one » Thu Oct 02, 2008 3:19 pm

yes it has something to do with python.
i unmerged python but now i can't emerge anymore ...

Code: Select all

/usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory
is there another way of reinstalling it ?
Top
B-one
n00b
n00b
Posts: 59
Joined: Mon Mar 24, 2008 10:51 pm
Location: France

  • Quote

Post by B-one » Fri Oct 03, 2008 7:13 am

up :o i'm really stuck without being able to emerge :oops:
Top
B-one
n00b
n00b
Posts: 59
Joined: Mon Mar 24, 2008 10:51 pm
Location: France

  • Quote

Post by B-one » Fri Oct 03, 2008 9:21 pm

up :D
Top
loki_val
Retired Dev
Retired Dev
Posts: 418
Joined: Mon Nov 13, 2006 11:03 am
Location: Denmark

  • Quote

Post by loki_val » Fri Oct 03, 2008 9:52 pm

So you unmerged python? Use the little search box in the upper right corner and do: "unmerged python" then press enter and you'll eventually be led [topic=702256]here.[/topic]
Top
Old School
Apprentice
Apprentice
User avatar
Posts: 252
Joined: Sat Nov 20, 2004 9:02 pm
Location: West Bank of the Coast Fork

  • Quote

Post by Old School » Sat Oct 04, 2008 1:37 am

You're original problem would have been solved by doing the following:

Code: Select all

#python-updater -i
#emerge -avuDN world
www.otw20.com

The further a society drifts from truth, the more it will hate those who speak it.
George Orwell
Top
B-one
n00b
n00b
Posts: 59
Joined: Mon Mar 24, 2008 10:51 pm
Location: France

  • Quote

Post by B-one » Sat Oct 04, 2008 7:58 am

Thank you :oops: :D
Top
Post Reply

12 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