LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-02-2003, 08:48 AM   #1
Eponick
LQ Newbie
 
Registered: Sep 2003
Location: A mean old shell
Distribution: Slackware 9.1
Posts: 17

Rep: Reputation: 0
Unhappy NVIDIA Driver wont install?


Ok, I got out my NVIDIA Card to try to install it onto my linux box.
Its a Geforce4 ti 4200 with AGP8x (112MB DDR Ram)

I did everything the install said, but when I try to install the kernel driver, it says something like "Dosnt work with kernel 2.6+".

Im on Linux Mandrake 8.2
Trying to install the NVIDIA AI64(Could be wrong one, i dont know) driver.

Can someone please help.
The crap of windows is hurting me while I post this from my windows PC
 
Old 09-02-2003, 08:54 AM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
I doubt that you have a 64 bit cpu. All home systems I am aware of use the common 32bit cpus.

# Find CPU specifications
cat /proc/cpuinfo

# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password: 
[root@tinwhistle root]# uname -r
2.4.18-3
I am running kernel version 2.4.18-3. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.18-3 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need, so I may as well make one now to save editing the files in the source code to install.So, I'll make it just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.18-3 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.18-3
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy comiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation

# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page


Last edited by fancypiper; 09-02-2003 at 10:00 AM.
 
Old 09-02-2003, 09:06 AM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
and although you have the wrong driver, you still may have issues with installing the driver on the 2.6 kernel....
so after getting the IA32 driver, go here and see how its done...you will have to apply the 2.5 patch to it...anyways the page is in german, but the commands are english ... and thats all you obviously need anyways... even if for some reason you want it written in english, you can use babelfish to translate from german --> english...but again you only need the commands which are written there anyways...just ignore the german...
 
Old 09-02-2003, 09:08 AM   #4
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
Lightbulb try this

Look at this link. One newbie to another.
http://www.linuxquestions.org/questi...ticle&artid=30

When you want the current driver go here.
http://www.nvidia.com/object/linux_d..._1.0-4496.html

You need the IA32, Intel/AMD 32 bit. I doubt you have that expensive 64 bit proc.

Between those two links you should be good the go.

Good luck.



If you are reading this post in the future, goto www.nvidia.com click download drivers at the top, then Linux drivers, then IA32. You should see the new version there.
 
Old 09-02-2003, 09:43 AM   #5
Eponick
LQ Newbie
 
Registered: Sep 2003
Location: A mean old shell
Distribution: Slackware 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
Ok, my linux is version 2.4.18-6mdk

BUT(!!)
I dont have the source code, only thing in my source dir is RPM

Can someone tell me where to get the source I need?

Also note: Ive been downloading files through Lynx(The text browser) Since I dont have any spare CD-Rs on hand :P

Last edited by Eponick; 09-02-2003 at 09:45 AM.
 
Old 09-02-2003, 09:58 AM   #6
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
urpmi kernel-source

# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page
 
Old 09-02-2003, 10:10 AM   #7
Eponick
LQ Newbie
 
Registered: Sep 2003
Location: A mean old shell
Distribution: Slackware 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
Ok, got the source and everything.
Now its saying I dont have the nvidia.o file.
 
Old 09-02-2003, 10:19 AM   #8
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Do you have a symbolic link (/usr/src/linux) that points to the source code directory (/usr/src/linux-<version number>)?
 
Old 09-02-2003, 10:21 AM   #9
Eponick
LQ Newbie
 
Registered: Sep 2003
Location: A mean old shell
Distribution: Slackware 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
yes
 
Old 09-02-2003, 10:31 AM   #10
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Did you re-run the nvidia install script after installing kernel-source and was it successful?
Did you edit the files as indicated on the download page?
 
Old 09-02-2003, 10:44 AM   #11
Eponick
LQ Newbie
 
Registered: Sep 2003
Location: A mean old shell
Distribution: Slackware 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
I did everything it says.

But when I run the NVIDIA<version>.run script, then accept

it says something about not having nvidia.o

I looked at the error log and found the problem.

its executing "cd /usr/src/nv; ld nvidia.o <blah>"
But, I dont have a /usr/src/nv directory.

What creates this?

Last edited by Eponick; 09-02-2003 at 10:58 AM.
 
Old 09-02-2003, 11:38 AM   #12
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
I don't think you downloaded the correct driver. Did you download a file named NVIDIA-Linux-x86-1.0-4496-pkg2.run? That is the driver file you want to install.

nVidia driver download page
 
Old 09-02-2003, 09:06 PM   #13
Eponick
LQ Newbie
 
Registered: Sep 2003
Location: A mean old shell
Distribution: Slackware 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by fancypiper
I don't think you downloaded the correct driver. Did you download a file named NVIDIA-Linux-x86-1.0-4496-pkg2.run? That is the driver file you want to install.

nVidia driver download page
Yes that is the one I have, its saying something was compiled
with the wrong linux headers or something.
 
Old 09-02-2003, 09:11 PM   #14
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
How to get good answers with your questions about Linux
# What is the running kernel and compiler installed
cat /proc/version
Anything specific you can tell us?

Last edited by fancypiper; 09-02-2003 at 09:13 PM.
 
Old 09-02-2003, 09:30 PM   #15
Eponick
LQ Newbie
 
Registered: Sep 2003
Location: A mean old shell
Distribution: Slackware 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
Linux version 2.4.18-6mdk
Compiler: GCC

This is not the easiest thing since I have to do everything
from Lynx.

When I run the script it says something along the lines of:
Cannot load 'nvidia.o' module init_(something)
This could be because the nvidia kernel(i think) has
been compiled with the wrong kernel headers.
You can set your kernel include directory with --include-kernel-directory
(tried that)
Or maby you dont have the kernel source installed(it is)
Make sure the kernel-source package is installed(it is)
 
  


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 drivers wont install on MDK10.1/FC3 DesyphER Linux - Software 19 02-26-2005 02:48 AM
Nvidia Driver Install - rivafb driver conflicts rjcmi Debian 5 10-10-2004 11:58 PM
Nvidia graphix wont install on redhat 9.0 clintroe Red Hat 2 02-27-2004 12:49 PM
nvidia driver 5328 redhat 9 module wont load restlekak Linux - Hardware 1 01-24-2004 02:21 PM
nvidia driver wont install (suse 8.2_ftp install) splintah Linux - Newbie 1 10-06-2003 03:03 PM


All times are GMT -5. The time now is 07:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration