C Header Files

Discussion in 'Installation/Configuration' started by Dy0nisus, Sep 12, 2007.

  1. Dy0nisus

    Dy0nisus New Member

    Hi!

    I'm running al Strato - Root - Server with debian 3.1.

    While trying to install VMWare - Server i need the path to the kernel header files ... but i only know where they oar NOT

    /usr/src/linux/include not existing
    /lib/modules/2.6.18-4-686/build/include not existing

    Does somebody know where they are?

    header-files are installed i checked this with apt.

    regards :)
     
  2. rayit

    rayit Member

    maybe this helps?

    on debian 4 I do

    apt-get install linux-headers-`uname -r` libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 psmisc build-essential


    after that start installation and it should find it automatically

    RayIT
     
  3. Dy0nisus

    Dy0nisus New Member

    wired ...

    Code:
    E: Konnte Paket linux-headers-2.6.8-3-686 nicht finden
    
    this is the error i get ... but the newest kernel should be installed ...
     
  4. chuckl

    chuckl New Member

    Normally in Debian, the headers would be in /usr/src/ as a folder called kernel-headers-2.6.8-3-686

    Your best course is to run apt-get install linux-headers-2.6.8-3-686 If the headers are installed, apt will say something like 'already latest version', if not it will install them for you.
     
  5. Dy0nisus

    Dy0nisus New Member

    /usr/src is empty ...

    a newer kernel should be installed ... dunno why apt wants to install linux-headers-2.6.8-3-686?!
     
  6. chuckl

    chuckl New Member

    Sorry, your first post mentioned -4-686, not -3.

    What is the result of uname -r?

    If usr/src is empty, either you don't have any kernel headers installed, or they're being installed somewhere else. Certainly on any Debian or Ubuntu install I've ever seen that is where they go, but it might be different on a Strat?
     
  7. Dy0nisus

    Dy0nisus New Member

    output: 2.6.8-3-686


    but in /lib/modules:

    2.6.18-4-686 2.6.18-5-686 2.6.8-3-686

    do i have to activate the newer kernel images?
     
  8. chuckl

    chuckl New Member

    Then the running kernel is 2.6.8-3-686

    There may weel be newer kernels there, but if the running kernel has been patched in any way, quite likely on a strato I would imagine, then they are not going to be loaded. e.g. I have Ubuntu running on a Proliant server that has the HP monitoring software added. Every time I run apt-get upgrade it tells me that 'linux-image-server' has been kept back, for that reason.

    But getting back to VMWare, in order to compile a compatible kernel, it needs the source code header files for the running kernel, in you case 2.6.8-3-686, as well as several other libraries.

    apt-get install linux-headers-2.6.8-3-686 and
    apt-get install libx11-6 libxtst6 libice-dev libsm-dev libxt6

    Might need xinetd as well.

    That should allow it to do it's thing for your running kernel. Obviously, if you change to a newer kernel, the header requirements here will change.
     
  9. Dy0nisus

    Dy0nisus New Member

    and that is the problem ... apt can't find linux-headers-2.6.8-3-686
     
  10. chuckl

    chuckl New Member

    Can you post the contents of /etc/apt/sources.list?
     
  11. Dy0nisus

    Dy0nisus New Member

    Code:
    deb http://ftp.serverkompetenz.de/debian/ stable main
    deb-src http://ftp.serverkompetenz.de/debian/ stable main
    
    deb http://security.debian.org/ stable/updates main
     
  12. chuckl

    chuckl New Member

    The current stable release of Debian is 4.0 - etch, whereas you have 3.1-sarge installed.

    Try editing sources.list and changing every instance of stable to sarge

    e.g. deb http://ftp.serverkompetenz.de/debian/ sarge main

    then do an apt-get update, and see if it finds anything
     
  13. Dy0nisus

    Dy0nisus New Member

    ah okay it works :) thank you!

    next problem:

    Code:
    *** Inappropriate build environment: you wanted to use gcc version 3.3.6 while kernel attempts to use gcc version 4.1.2.
    /tmp/vmware-config0/vmmon-only/Makefile:91: *** For proper build you'll have to replace gcc with symbolic link to /usr/bin/gcc-3.3.
     
  14. chuckl

    chuckl New Member

    I suspect a side effect of having the etch repositories there. Never had the message myself, but it seems to suggest that a symbolic link is what is wanted?

    You could try

    ln -s /usr/bin/gcc-3.3 /usr/bin/gcc

    which if I haven't got it backwards as I usually do, creates a link 'gcc' that directs the gcc compiler requests to /usr/bin/gcc-3.3 rather than 4.1 as it currently is doing.
     
  15. Dy0nisus

    Dy0nisus New Member

    it works totaly now .. thanks alot :)
     
  16. chuckl

    chuckl New Member

    Would this be a good time to mention that I've just had a popup on the VMWare remote console to advise that VMWare Server 1.04 is available?
     
  17. Dy0nisus

    Dy0nisus New Member

    same her :)
     

Share This Page