Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

virtualbox-guest-additions KERN_DIR


duco-ergo-sum

Question

Hi there,

I am attempting to emerge virtualbox-guest-additions package.  This consistently fails with the error message:

*** The variable KERN_DIR must be a kernel build folder and end with /build without a trailing slash, or KERN_VER must be set.  Stop.

The values reported in relation to this error message are:

KERN_DIR=/usr/src/linux
KERNOUT=/usr/src/linux

I have come across this error being reported many times reported for other distributions.  In these cases the suggestion has been to install linux-headers and pre-populate KERN_DIR with path to your kernel source before installing.  I have even tried hard coding this in the ebuild, also I have tried masking off ebuilds to use the Gentoo stable version.

Any help or insight would be gratefully received.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

×
×
  • Create New...