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

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
ciremay
Posts: 9
Joined: 27. Jul 2014, 19:01

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

Post 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
Last edited by ciremay on 16. Aug 2014, 18:50, edited 1 time in total.
baran
Posts: 74
Joined: 8. Feb 2010, 17:41

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

Post 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
ciremay
Posts: 9
Joined: 27. Jul 2014, 19:01

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

Post 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.
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

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

Post by laprjns »

You need to install the kernel-source package:

Code: Select all

$sudo slapt-get --update
$sudo slapt-get --iinstall kernel-source
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
ciremay
Posts: 9
Joined: 27. Jul 2014, 19:01

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

Post 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
Post Reply