LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-16-2003, 02:54 PM   #1
Gieltje
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Rep: Reputation: 0
Exclamation Debian and Nvidia


I have a Geforce 4MX440ddr, but when I try to install the latest nvidia drivers I get the error no good kernel found trying to build one myself. and after that cannot find kernel headers.
What to do about this?
 
Old 08-16-2003, 03:02 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
You need to install the kernel-source for you kernel.

type 'uname -r' and get the kernel-source from your distribution that matches what it reports.

do'h didn't read the Title.

for debian its

apt-get install kernel-source-"What you got from uname -r"

then

cd /usr/src

tar -xvzf kernel-source-"What you got from uname -r"

Last edited by leonscape; 08-16-2003 at 03:12 PM.
 
Old 08-16-2003, 03:06 PM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
1stly identify the kernel you are using. I suggest that if you are not using synaptic then apt-get it because it is very easy to use as opposed to any other apt-system I have seen. Run synaptic as su and go down the list until you find the kernel headers that match your kernel. Select and install them. They will be placed in /usr/src but the nvidia config script is going to look for them in /usr/include/linux. If that/those directories don't exist then create them and copy the contents of /usr/src/linux to /usr/iclude/linux. You could also try a symlink. The symlink did not work for me. Having done this run configure again. It is important that the headers match the running kernel.
 
Old 08-17-2003, 02:23 PM   #4
Gieltje
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
it keeps complaining kernel headers not found I am running kernel 2.4.21-4-k7. I have installed the headers and copied them also to /usr/include/linux. but it keeps complaining.
 
Old 08-17-2003, 02:32 PM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Remove the directory created when you unpacked the Nvidia-kernel as it probably contains files created by configure you don't want. Unpack the Nvidia-kernel again and run configure again. I seem to remember this happening to me.
 
Old 08-17-2003, 02:42 PM   #6
Gieltje
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
it is a .run file see, http://www.nvidia.com/object/linux_d..._1.0-4496.html
so I cannot run configure again
 
Old 08-17-2003, 02:49 PM   #7
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally posted by Gieltje
it is a .run file see, http://www.nvidia.com/object/linux_d..._1.0-4496.html
so I cannot run configure again
It's still going to go through the configure&&make&&make install processes it needs to build stuff that relates to your kernel and hence the need for the headers. Just try what I suggested.
 
Old 08-18-2003, 03:24 AM   #8
Gieltje
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
I cannot see where that map is, and when I run it it immediatly asks to download something for my kernel from the nvidia ftp which hasnt got it and then it says i'll have to compile my own and after that it immediatly complains that It cannot find the correct kernel headers.
 
Old 08-18-2003, 03:47 AM   #9
ash4stuff
Member
 
Registered: Aug 2003
Location: Viena
Distribution: Debian Sarge
Posts: 139

Rep: Reputation: 15
I did this not so long ago. Im not at home at the moment, so I can check it exactly, and Im not sure right now if I remember right, but I think when you run the installer, there is a parameter for specifying the kernel-headers path. First you have to install the headers for your kernel. Then when you try to install the envidia drivers you should run the installer with a parameter similar to this (this is not the actual command, just something similar, like I said, Im not sure this is right):

./envidiadriverinstaller -kernelpath /usr/include/linux

Then it will compile your kernel for you, you will still have to make some changes in the "x" config files i think.

Buena suerte!
Ashley
 
Old 08-19-2003, 05:30 AM   #10
Gieltje
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
still cant get it to work
 
Old 08-19-2003, 05:49 AM   #11
ash4stuff
Member
 
Registered: Aug 2003
Location: Viena
Distribution: Debian Sarge
Posts: 139

Rep: Reputation: 15
Same error as before, kernel headers not found?

As soon as I get home (today at night I will check it out) if it still doesnt work.
 
Old 08-19-2003, 11:57 AM   #12
Gieltje
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Ok thanks in advance.
 
Old 08-27-2003, 11:23 AM   #13
ash4stuff
Member
 
Registered: Aug 2003
Location: Viena
Distribution: Debian Sarge
Posts: 139

Rep: Reputation: 15
sorry, things have been very messy lately... still having problems with that nvidia? ive played around with it again and its a little tricky but it works for me when i play around with the kernel source path. still there?
 
Old 08-27-2003, 11:45 AM   #14
Gieltje
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Yes I am still there, and still having problems with the kernel headers.
 
Old 08-27-2003, 11:57 AM   #15
ash4stuff
Member
 
Registered: Aug 2003
Location: Viena
Distribution: Debian Sarge
Posts: 139

Rep: Reputation: 15
hmm, im still at work, will be recompiling my kernel around two hours from now, can you be online?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't build nvidia.ko on MEPIS3.3. Read /usr.../nvidia-kernelsource/README.debian digorykirke Linux - Software 0 03-16-2005 02:10 AM
nvidia and debian kernel 2.6.10 six6 Debian 5 01-13-2005 02:37 AM
Debian, X.org 6.8.1 and NVIDIA joel112 Linux - Software 1 12-21-2004 05:42 AM
debian and nvidia rosariowong Debian 1 10-21-2004 08:36 AM
Nvidia and Debian Rodcl Linux - Hardware 13 10-28-2002 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:38 AM.

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