What is the location of the directory of C header files that match your running kernel – Debian y Ubuntu

27/10/2009
By

vmware logo

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: 4% [?]


Otros articulos de interes:

  1. Instalar el codigo fuente del Kernel de Redhat Enterprise Linux / CentOS para VMware
  2. Cómo usar 4 GB de RAM en Ubuntu 8.10: Intrepid Ibex
  3. Debian 6.0 “Squeeze” para ser lanzado con Kernel de Linux totalmente libre
  4. Ubuntu lanza parche para corregir fallo en el kernel
  5. CentOs DRBD Kernel conflicts

Tags: c header files, compilador gcc, reading database, reading package

2 Responses to What is the location of the directory of C header files that match your running kernel – Debian y Ubuntu

  1. hugo on 08/08/2011 at 09:08

    hola, tengo el mismo problema pero en CentOS 5.6, que paquetes o herramientas necesitaria actualizar o instalar para que pueda instalar VMware 7.1.4?

  2. fher98 on 13/11/2009 at 11:29

    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

Leave a Reply

Your email address will not be published. Required fields are marked *

*