LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-13-2008, 09:59 AM   #1
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Configure kernel source?


Sorry if this elementary but have been unable to find stuff.

Trying to install nvidia's own graphics drivers using their *.run file.

It won't work saying this is because version.h is not present in kernel source and the most likely reason for this is that the source has not been properly configured. Installed kernel-source and extracted the tar file. No idea how to 'configure' it.

Seem to recall typing something like dpkg-make configure or something on a previous occasion.

Thanks any help.
 
Old 10-13-2008, 10:10 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You should be able to simply install the kernel source package for your version of Mandrake. Also install the kernel-headers package. That will be the one that supplies the version.h file. You need the module-init-utils package installed. It probably already is. Otherwise you may need to run the full "make oldconfig && make xconfig && make modules_install" process.
 
Old 10-13-2008, 11:24 AM   #3
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally Posted by jschiwal View Post
You should be able to simply install the kernel source package for your version of Mandrake. Also install the kernel-headers package. That will be the one that supplies the version.h file. You need the module-init-utils package installed. It probably already is. Otherwise you may need to run the full "make oldconfig && make xconfig && make modules_install" process.
Great thanks. Using Debian Etch AMD 64.

So what I'll do is:

Install module-init-utils if not allready there.

Install kernel-headers and tar zvxf the tarball it puts in /usr/src if that's what it does. That's what kernel-source did.

Try to install drivers:
bash nvidia*.run.

If this does not work:

cd /usr/src/somethingOrOtherLinuxSource-*6.18

make oldconfig
make xconfig
make modules_install

Have my doubts about last make - the nvidia installer usually does that doesn't it?

All that make stuff is new to me.

I'll get back if it does not work if that's ok.

Last edited by lugoteehalt; 10-13-2008 at 11:28 AM.
 
Old 10-13-2008, 11:42 PM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Quote:
It won't work saying this is because version.h is not present in kernel source and the most likely reason for this is that the source has not been properly configured
You should post the exact error spit out by bash to get accurate help.
With Debian, I usually install 'linux-kernel-headers' with apt or aptitude, synaptic and you'll have necessary headers/source for compiling modules/drivers.
 
Old 10-14-2008, 10:50 AM   #5
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Yes, all that was needed was to install the linux kernel headears package. (There are a great many source packages, with a variety of different names, this leads to confusion.) The NVidia installer found them by itself and did its thing. To be fair to myself it did tell me to put in the kernel source.

Thanks.

For completeness:

Code:
ERROR: The kernel header file
       '/usr/src/linux-source-2.6.18/include/linux/version.h' does not exist. 
       The most likely reason for this is that the kernel source files in
       '/usr/src/linux-source-2.6.18' have not been configured.
ERROR: Installation has failed.  Please see the file
       '/var/log/nvidia-installer.log' for details.  You may find suggestions
       on fixing installation problems in the README available on the Linux
       driver download page at www.nvidia.com.

Last edited by lugoteehalt; 10-14-2008 at 10:57 AM.
 
Old 10-14-2008, 10:58 AM   #6
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Good it got sorted then. I would think the source package contains the headers as well, it does in most distros I think. Of course the installed source need to match the kernel you are running (command: uname -a I think). You also normally need a symbolic link /usr/src/linux that point to the source for the currently running kernel.
 
Old 10-14-2008, 11:17 AM   #7
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally Posted by monsm View Post
Good it got sorted then. I would think the source package contains the headers as well, it does in most distros I think. Of course the installed source need to match the kernel you are running (command: uname -a I think). You also normally need a symbolic link /usr/src/linux that point to the source for the currently running kernel.
I haven't got the symbolic link, I'll put it in. It will point to *-2.6.18-6 not *-2.6.18-6-amd64 (the amd64 is what is running, there does not seem to be a package with this name.) Is this all right?
 
Old 10-14-2008, 01:53 PM   #8
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Yes think that should be ok.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TrueCrypt: problem running build.sh; cannot configure kernel source wakawaka Linux - Software 1 04-09-2007 07:03 AM
kernel-2.6 FC5 source code and ./configure ce124 Linux - Software 1 01-04-2007 05:58 AM
Configure.help file in 2.6.x kernel source diskoe Linux - General 1 12-01-2006 01:45 PM
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 11:19 AM
How to configure Kernel Source Astrojax Linux - Newbie 4 08-26-2004 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration