LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-27-2004, 10:39 PM   #1
watha
Member
 
Registered: Jun 2004
Location: Boston, MA USA
Distribution: Suse 9.3
Posts: 68

Rep: Reputation: 15
Can't install Nvidia driver in Suse 9.1


I ran the command to install it, and got the following message:

ERROR: Unable to load the kernel module 'nvidia.o.' This is most likely
because the kernel module was built using the wrong kernel header files.
Please make sure you have installed the kernel header files for your kernel.

There follows some advice for users of Red Hat, and notes on what to do if
you're sure the header file is installed. Well, I'm not sure. In fact, I'm
totally confused.

Has anybody done this before? Do I have to recompile my kernel, or just add
some header files? Which header files and where do I find them? Anybody?
Help!
 
Old 06-27-2004, 10:42 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
install the package "kernel-source" from your cd's.
 
Old 06-28-2004, 01:11 PM   #3
watha
Member
 
Registered: Jun 2004
Location: Boston, MA USA
Distribution: Suse 9.3
Posts: 68

Original Poster
Rep: Reputation: 15
I did install the kernel-source rpm. That didn't help. What next?
 
Old 06-28-2004, 01:32 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
do an online update, there is a new kernel patch as of today, or you'll just have to re-install the nvidia driver after. are you using the .run file from nvidia? if not please get it, the suse provided ones don't give the performance as the nvidia . http://download.nvidia.com/XFree86/L...-5336-pkg1.run

at a root terminal type 'init 3' log in as root, type 'rmmod nvidia' it may say it's not installed or say nothing, either way it's alright. then 'cd /usr/src/linux' type 'make cloneconfig' then 'make prepare-all' then change to the directory where the .run file is and type 'sh NVIDIA-Linux-x86-1.0-5336-pkg1.run --kernel-source-path=/usr/src/linux' once done type 'sax2 -m 0=nvidia' to launch sax and configure your monitor frequencies and to enable 3d.
 
Old 06-28-2004, 02:51 PM   #5
watha
Member
 
Registered: Jun 2004
Location: Boston, MA USA
Distribution: Suse 9.3
Posts: 68

Original Poster
Rep: Reputation: 15
Cool...I'll give it a whirl tonite. Thanks.
 
Old 06-28-2004, 09:41 PM   #6
watha
Member
 
Registered: Jun 2004
Location: Boston, MA USA
Distribution: Suse 9.3
Posts: 68

Original Poster
Rep: Reputation: 15
Uh-oh. When I get to /usr/src/linux, I can't run the make command. It says command not found. Any idea where it might be? Thanks.
 
Old 06-28-2004, 09:58 PM   #7
watha
Member
 
Registered: Jun 2004
Location: Boston, MA USA
Distribution: Suse 9.3
Posts: 68

Original Poster
Rep: Reputation: 15
Okay...apparently, the make command didn't get installed when I installed Suse. So I found the RPM and installed it. (by the way, how do you know which programs got installed and which didn't? How can I tell the system to install them all? It'd save trouble, yes?)

Anyway, even after installing make, it didn't work. Here's what I got:

linux:/usr/src/linux # make cloneconfig
HOSTCC scripts/basic/fixdep
/bin/sh: line 1: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
linux:/usr/src/linux #


What's up with this? Thanks.
 
Old 06-28-2004, 10:23 PM   #8
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
probably need to install 'c++ compiler and tools' from yast. that will install everything you will need.
 
Old 06-29-2004, 10:54 PM   #9
watha
Member
 
Registered: Jun 2004
Location: Boston, MA USA
Distribution: Suse 9.3
Posts: 68

Original Poster
Rep: Reputation: 15
Thanks again. But I don't understand this...if you need to do all this stuff, why doesn't Suse install all the necessary tools for doing it? When you install the OS, you don't know which parts were installed and which weren't. It's deeply annoying.
 
Old 06-29-2004, 11:24 PM   #10
watha
Member
 
Registered: Jun 2004
Location: Boston, MA USA
Distribution: Suse 9.3
Posts: 68

Original Poster
Rep: Reputation: 15
Okay, I installed all the gcc stuff. Now the other changes you told me to make all worked. I did the make cloneconfig and the make prepare-all. But when I ran the Nvidia installer, I got the same error message as before.


Another guy told me to try running the installer with an extra flag, --add-this-kernel. All that gave me was a brand new error message:


ERROR: The kernel header file 'usr/src/linux/include/linux/modversions.h' does not exist. The most likely reason for this is that the kernel header files in '/usr/src/linux/include' have not been configured.

Lovely. What on earth does this mean? Am I only digging a deeper hole?

Thanks.
 
Old 06-30-2004, 01:43 AM   #11
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Nvidia

uname -a should reveal

2.6.5-7.75-default

If not, then update your kernel with yast online update.

Reboot

Update all security and recommended updates with the yast online update.

Reboot

Update your nvidia driver with the yast online update

Reboot

If you are missing any dependencies during either process, put in the DVD/CD and install them.

The rebooting is to be thorough, so you don't have to SIGUP services that you are unfamiliar with. Also, you are essentially replacing your Operating System when updating the kernel, so that is typically the only thing that requires a reboot in linux.

As an aside: A nice update and automatic dependency program for suse is called synaptic/kynaptic. It's a bit tedious to set up, but if you want command line or gui updating to the latest everything you can use these tools.
You will get alot more out of Suse or any distro for that matter with apt. It saves countless hours in the near-term and days in the long-term.

Available here:

http://linux01.gwdg.de/apt4rpm/

Install these rpms:
http://sourceforge.net/project/shown...ease_id=239535
ftp://ftp.gwdg.de/pub/linux/suse/apt...PMS.suser-rbos

Make this your /etc/apt/source.list:
http://ftp.gwdg.de/pub/linux/suse/ap...urces.list.FTP
Remove kernel-of-the-day and suse-people entries(That's for beta-testing only)

Modify /etc/apt/apt.conf.d/gpg-checker.conf:
Make RPM::GPG-Check no; to disable gpg checking
// It can still be used in combination with --checksig
RPM::GPG-Check false;
Scripts::PM::Pre:: gpg-checker.lua;

Notice "GPG-Check" is now false.

Now apt-get update
And you can either upgrade your entire distribution with synaptic, clicking upgrade and hitting "default". Or you can install packages one at a time with a click- or via command-line "apt-get install mychoiceofsoftware"

OK, so that's way more information than you wanted. I apologize if it's not interesting, but I think it is pertinent to the issue that you are having. Good luck.

Thor
 
Old 06-30-2004, 07:39 PM   #12
watha
Member
 
Registered: Jun 2004
Location: Boston, MA USA
Distribution: Suse 9.3
Posts: 68

Original Poster
Rep: Reputation: 15
How do I use the Yast updater to update my Nvidia driver? Just by running it? Will it know where to go?
 
Old 06-30-2004, 07:49 PM   #13
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
run online update, it will show as an optional package on the top left along with the wlan drivers and m$ truetype fonts, click the box and select accept.
 
Old 07-03-2004, 11:46 PM   #14
watha
Member
 
Registered: Jun 2004
Location: Boston, MA USA
Distribution: Suse 9.3
Posts: 68

Original Poster
Rep: Reputation: 15
Hey...it worked! Thanks!
 
Old 07-14-2004, 03:41 AM   #15
[42]Sanf0rd
Member
 
Registered: Apr 2004
Location: Dallas, TX
Distribution: Open Suse 10.2
Posts: 50

Rep: Reputation: 15
i JUST did a full reformat and install of SuSE 9.1 Personal on my system, did the full YaST update, and was still having problems installing the nVidia drivers.

I discovered that in /usr/src there was no /linux, so I realized I needed to get the kernel-source rpm file.

Save yourself the time, here's the direct link from rpmfind.net


first, do a uname -a and make sure your kernel is 2.6.5-7.95... if so, follow this link...
ftp://rpmfind.net/linux/SuSE-Linux/i...-7.95.i586.rpm

hope that helps someone in the future
 
  


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
nvidia driver won't update in Yast after SuSE 9.3 Pro. install dobsey Linux - Newbie 1 07-06-2005 11:46 AM
Can't install nVidia driver on Suse 9.2 with YOU jakand Linux - Software 7 03-07-2005 08:37 AM
nvidia driver install on suse 8.2 ronss Linux - Distributions 2 04-24-2004 06:45 AM
nvidia driver wont install (suse 8.2_ftp install) splintah Linux - Newbie 1 10-06-2003 03:03 PM
How to install Suse 8.1 nvidia driver? MadKatMk2 Linux - Newbie 14 12-08-2002 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:07 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