What is the location of the directory of C header files that match your running kernel – Debian y Ubuntu
Introduccion
La instalacion de WMware Server 2 sobre Ubuntu 9.04 fallo debido a que es necesario recompilar los modulos de vmware para mi sistema operativo.
Sobre las distros de Linux Debian/Ubuntu y demas derivados es necesario instalar las herramientas de compilacion necesarias, asi como las fuentes y los encabezados del kernel para poder compilar e instalar la suite de virtualizacion VMware. Ya que la falta de estos componentes nos despliega el siguiente error:
What is the location of the directory of C header files that match your running kernel
Desplegar la version del kernel de Linux
Para conocer que version o release de kernel tenemos en ejecucion, tecleamos:
:~# uname -r
Como instalar las fuentes/encabezados del kernel
Para instalar los encabezados y el compilador gcc tan solo es necesario ejecutar apt, de siguiente manera:
:~# apt-get install linux-headers-`uname -r`
:~# apt-get install build-essential
root@server:~/vmware-server-distrib# sudo apt-get install linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-headers-2.6.28-15
The following NEW packages will be installed:
linux-headers-2.6.28-15 linux-headers-2.6.28-15-server
0 upgraded, 2 newly installed, 0 to remove and 25 not upgraded.
Need to get 9373kB of archives.
After this operation, 74.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com jaunty-updates/main linux-headers-2.6.28-15 2.6.28-15.52 [8699kB]
Get:2 http://us.archive.ubuntu.com jaunty-updates/main linux-headers-2.6.28-15-server 2.6.28-15.52 [673kB]
Fetched 9373kB in 2min 37s (59.4kB/s)
Selecting previously deselected package linux-headers-2.6.28-15.
(Reading database ... 36308 files and directories currently installed.)
Unpacking linux-headers-2.6.28-15 (from .../linux-headers-2.6.28-15_2.6.28-15.52_all.deb) ...
Selecting previously deselected package linux-headers-2.6.28-15-server.
Unpacking linux-headers-2.6.28-15-server (from .../linux-headers-2.6.28-15-server_2.6.28-15.52_i386.deb) ...
Setting up linux-headers-2.6.28-15 (2.6.28-15.52) ...
Setting up linux-headers-2.6.28-15-server (2.6.28-15.52) ...
Luego de la instalacionVMware deberia de encontrar automaticamente el path de los C headers.
Popularity: 2%































Si luego de actualizar a un nuevo kernel e instalar los headers, nos despliega:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
The path “/usr/src/linux/include” is not an existing directory.
Solo es necesario agregarle, el directorio de los headers del nuevo kernel, en mi caso:
/lib/modules/2.6.28-16-server/build/include
Ya que tengo instalado ubuntu server