Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24
hello, I am trying to install a graphics driver for my graphics card within suse linux 10.2 and fails. I have looked in the error log and got this ERROR: ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    12

    problem with kernel header file

    hello, I am trying to install a graphics driver for my graphics card within suse linux 10.2 and fails. I have looked in the error log and got this

    ERROR: The kernel header file
    '/lib/modules/2.6.18.2-34-default/build/include/linux/kernel.h'
    does not
    exist. The most likely reason for this is that the kernel
    source path
    '/lib/modules/2.6.18.2-34-default/build' is incorrect. Please
    make sure
    you have installed the kernel source files for your kernel and
    that they
    are properly configured; on Red Hat Linux systems, for example,
    be sure
    you have the 'kernel-source' RPM installed. If you know the
    correct
    kernel source files are installed, you may specify the kernel
    source
    path with the '--kernel-source-path' command line option.

    I think no kernal of some sort is not installed / compiled and i'm not sure on how to do that. I have contacted nvidia to which got nowhere. I know how to install it but its this error that is stopping me. any ideas?

    thanks

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    You can install the sources through yast, by the installing software
    option. Browse through the list of available software untill you see the sources and select them.

    Regards

  3. #3
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    You also need the gcc compiler and make

    Here are some detailed instructions

    Hacking openSUSE 10.2 - Software in Review

    People who aren't afraid of recompiling the nvidia kernel module or
    even reinstalling the nvidia driver each time the kernel has been
    updated and want or need to use the latest and greatest nvidia driver
    can use the following steps 1-3. The others should use the
    instructions above using YaST and skip the steps below.

    1) Kernel sources must be installed and configured. Usually this means
    installing the 'kernel-source', 'make' and 'gcc' packages with YaST2.

    2) Use the nvidia installer for 1.0-9746.

    sh NVIDIA-Linux-x86-1.0-9746-pkg1.run -q

    3) Configure X.Org with

    sax2 -r -m 0=nvidia (0 is a digit, not a letter!)

    NOTE: There is no need to try to enable 3D support. It's already
    enabled, when the nvidia driver is running.

    IMPORTANT: You need to recompile and install the nvidia kernel module
    after each kernel update.

    sh NVIDIA-Linux-x86-1.0-9746-pkg1.run -K

  4. #4
    Just Joined!
    Join Date
    Jun 2007
    Posts
    12
    Quote Originally Posted by Franklin52 View Post
    You can install the sources through yast, by the installing software
    option. Browse through the list of available software untill you see the sources and select them.

    Regards
    Would you happen to know what these sources are called as I have no idea.

  5. #5
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Search for "kernel-source" and as gogalthorp mentioned check if "gcc" and "make" are installed.

    Regards

  6. #6
    Just Joined!
    Join Date
    Jun 2007
    Posts
    12
    rpm, gcc and make are all installed and i just checked to see if the source is and it is so a problem must be somewhere. I noticed when looking for "make" i saw these as well which were not installed "automake" , "cmake" , "makedev" and "unsermake" which i am now putting in just incase, if these fail what other things can I try as i have not got the knowledge or experience to compile the kernal my-self

  7. #7
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Have you search for the kernel-sources?

    Regards

  8. #8
    Just Joined!
    Join Date
    Jun 2007
    Posts
    12
    through yast? I did and it had a tick next to it so i would assume that means that them are installed

  9. #9
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Are the kernel-headers installed?

    Regards

  10. #10
    Just Joined!
    Join Date
    Jun 2007
    Posts
    12
    what are them? maybe not, i'll do a look for them asap and get back to you. I will also re-verify everything else as well.

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...