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
