Trying to install VirtualBox [Solved]

Discussion for all VM - Installing, Software, Problems

Moderator: Moderators

Trying to install VirtualBox [Solved]

Postby lucknuts » Sun Oct 14, 2007 22:06

Get an error stating it cant find kernel versoin...double you tee eff.??


command used: emerge virtualbox
running: sabayon 3.4f mini
Code: Select all
*     /usr/src/linux
 * Could not find a usable .config in the kernel source directory.
 * Please ensure that /usr/src/linux points to a configured set of Linux sources.
 * If you are using KBUILD_OUTPUT, please set the environment var so that
 * it points to the necessary object directory so that it might find .config.
 *
 * ERROR: app-emulation/virtualbox-modules-1.5.0 failed.
 * Call stack:
 *                         ebuild.sh, line 1711:  Called dyn_setup
 *                         ebuild.sh, line  762:  Called qa_call 'pkg_setup'
 *                         ebuild.sh, line   44:  Called pkg_setup
 *   virtualbox-modules-1.5.0.ebuild, line   26:  Called linux-mod_pkg_setup
 *                  linux-mod.eclass, line  465:  Called linux-info_pkg_setup
 *                 linux-info.eclass, line  558:  Called die
 * The specific snippet of code:
 *      get_version || die "Unable to calculate Linux Kernel version"
 *  The die message:
 *   Unable to calculate Linux Kernel version
 *
 * 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/app-emulation/virtualbox-modules-1.5.0/temp/build.log'.



Problem was it couldn't find the kernel source.

Solution:
Code: Select all
emerge =sabayon-sources-`uname -r | sed -e 's/-sabayon//'` && cd /usr/src/linux && zcat /proc/config.gz > ./.config && cp /boot/System.map* ./System.map && make prepare && make modules_prepare


But before that I was still under xeffects, I needed to use the layman command to revert back to sabayon. I did that by running this
Code: Select all
layman -d xeffects && layman -a sabayon
Yes, I'm new at this.
Will learn. WIll teach.
lucknuts
Growing Hen
 
Posts: 100
Joined: Fri Sep 28, 2007 6:48
Location: United States of America

Re: Trying to install VirtualBox

Postby Stupot » Mon Oct 15, 2007 4:56

I would suggest emerging virtualbox-bin. No problems with compiling (or at least I'd hope not).
Stupot
Sagely Hen
 
Posts: 1011
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: Trying to install VirtualBox

Postby lucknuts » Mon Oct 15, 2007 6:45

Stupot wrote:I would suggest emerging virtualbox-bin. No problems with compiling (or at least I'd hope not).



I'm not sure if anyone actually reads the post before responding, but for one I don't think you did.

I ended up solving it, but thank you. =]
Yes, I'm new at this.
Will learn. WIll teach.
lucknuts
Growing Hen
 
Posts: 100
Joined: Fri Sep 28, 2007 6:48
Location: United States of America


Return to Virtual Managers

Who is online

Users browsing this forum: No registered users and 1 guest