Page 1 of 1

<SOLVED>how to install the build and kernel header files?

Posted: 15. Aug 2014, 00:01
by ciremay
I have this error when installing VirtualBox

Code: Select all

xxxxx[~]$ su
Password: 
root[xxxxx]# ./VirtualBox-4.3.12-93733-Linux_x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation............
VirtualBox Version 4.3.12 r93733 (2014-05-16T13:09:01Z) installer
Please install the build and header files for your current Linux kernel.
The current kernel version is 3.2.45-smp
Problems were found which would prevent VirtualBox from installing.
Please correct these problems and try again.
if I remember correcty, I have try doing this:

Code: Select all

slapt-get -i kernel-source-3.2.45_smp-noarch-3
there were process running for several minutes but it was unexpectedly stop. Seems like the process was failed. However,after that, I was able to install VirtualBox.
Now I've reinstalled the salisxOS and I want to reinstall VirtualBox. Please give me advice about the correct procedure to solve this error?
Thanks

my os version: salixOS 14.0.1

Re: how to install the build and kernel header files?

Posted: 15. Aug 2014, 05:08
by baran
Hi,

I install kernel sources too, when I need install some drivers (for example nVidia drivers).

sudo slapt-get --update
sudo slapt-get -i kernel-source


and for certainty "Objective-C support for GCC"

sudo slapt-get -i gcc-objc

when you don't have "kernel headers"

sudo slapt-get -i kernel-headers

Rene

Re: how to install the build and kernel header files?

Posted: 15. Aug 2014, 21:57
by ciremay
Ok this is what I have try:

>sudo slapt-get --update
>sudo slapt-get --install kernel-headers-3.2.45_smp-x86-3
Reading Package Lists...Done
kernel-headers is up to date.
0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.

Done

->sudo ./VirtualBox-4.3.12-93733-Linux_x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation............
VirtualBox Version 4.3.12 r93733 (2014-05-16T13:09:01Z) installer
Please install the build and header files for your current Linux kernel.
The current kernel version is 3.2.45-smp
Problems were found which would prevent VirtualBox from installing.
Please correct these problems and try again.

Re: how to install the build and kernel header files?

Posted: 15. Aug 2014, 22:40
by laprjns
You need to install the kernel-source package:

Code: Select all

$sudo slapt-get --update
$sudo slapt-get --iinstall kernel-source

Re: how to install the build and kernel header files?

Posted: 16. Aug 2014, 18:50
by ciremay
you are right guys what I need is the kernel-source package. So, as root, I repeat my old procedure:

Code: Select all

slapt-get -i kernel-source-3.2.45_smp-noarch-3
and this time I am doing it succesfully.
thanks guys for your help :P