LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-05-2004, 10:36 AM   #1
d1ny3
Member
 
Registered: Apr 2004
Location: Sweden
Distribution: Mandrake 10.00
Posts: 43

Rep: Reputation: 15
Error with Nvidiadriver vs kernel.


Helllo everyone !
I have some trouble with getting the NVIDIA drivers to work for me.
Im using Mandrake 10 Com. with an amd athlon XP 1800+.

I downloaded this file "NVIDIA-Linux-x86-1.0-5336-pkg1.run" from "http://download.nvidia.com/XFree86/Linux-x86/1.0-5336/NVIDIA-Linux-x86-1.0-5336-pkg1.run".
And i did follow the instruktions "ftp://download.nvidia.com/XFree86/Linux-x86/1.0-5336/README"

But i got this "error message"
_____________________________
********************************************
option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
XFree86 install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel source path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /root/tmp
ftp site : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel; 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' commandline option.
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
__________________________________
***************************************************
Am i using the right driver for my computer ?
and
Is it because of this it wont find a kernel for me ?

([1] NOTE: installation requires that you have a linker installed.
The linker, usually '/usr/bin/ld', is part of the binutils package;
please be sure you have this package installed prior to installing the
NVIDIA driver.) ??

Help me out guys. Thanx alot.
 
Old 05-05-2004, 10:53 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You need to install the kernel-source. It should be on the CD's. Use the software/package management tools in the Mandrake Control Centre. I'm not impressed with Mandrake 10. It's very unstable for me. Hopefully your millage will be different.
 
Old 05-05-2004, 10:59 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
type in uname -r as root to double check the kernel you are running.

Then take a look in the /usr/src directory.

Here is my listing:
lrwxrwxrwx 1 root root 16 May 5 09:26 linux -> linux-2.6.3-8mdk/
drwxr-xr-x 4 root root 4096 Apr 29 09:55 linux-2.6.3-4mdk/
drwxr-xr-x 21 root root 4096 May 5 09:26 linux-2.6.3-8mdk/
drwxr-xr-x 7 root root 4096 Mar 11 16:17 RPM/

The --kernel-source-path option has a problem.

--kernel-source-path=[KERNEL SOURCE PATH]
The directory containing the kernel source files that should be
used when compiling the NVIDIA kernel module. When not
specified, the installer will use '/lib/modules/`uname
-r`/build', if that directory exists. Otherwise, it will use
'/usr/src/linux'.

There isn't a build directory, so it uses /usr/src/linux.
This means that you have to have the source code for the kernel you are running, and that the linux shortcut needs to point to that source.

# cd /usr/src
# unlink linux
# ln -s linux-2.6.3-8mdk linux

Now the driver program should be able to compile a new kernel module.
You also need the kernel-headers, which means installing:
glibc-devel
if you haven't already. I'm assuming you have gcc installed since you didn't get a error message about that.

Good Luck!
 
Old 05-05-2004, 11:01 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
PS.

If the /usr/src/linux shortcut was changed during the install. Be sure to restore it the way it was before. This is to avoid kernel compiling probems in the future.
 
Old 05-06-2004, 01:49 PM   #5
d1ny3
Member
 
Registered: Apr 2004
Location: Sweden
Distribution: Mandrake 10.00
Posts: 43

Original Poster
Rep: Reputation: 15
I dont get it man, too mutch for me to take in.
This is what i got:

"[root@h179n2fls35o858 d1ny3]# uname -r
2.4.25-2mdk"

I dont got the /usr/src/linux folder only /usr/src/RPM.

"[root@h179n2fls35o858 d1ny3]# cd /usr/src
[root@h179n2fls35o858 src]# unlink linux
unlink: cannot unlink `linux': No such file or directory
[root@h179n2fls35o858 src]# ln -s linux-2.6.3-8mdk linux
[root@h179n2fls35o858 src]#"

And i got:
"file:/lib/modules/2.6.3-4mdk" and "file:/lib/modules/2.4.25-2mdk"

Should i link, so the nvidia finds one of these folders ? Cause there are KERNEL inside those.

THis is verry complicated for me. Sorry but i dont understand everything.
 
Old 05-06-2004, 04:12 PM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
My apologies, I didn't think you may be running the 2.4 kernel. I've just booted into Mandrake 10 To have a look and though the kernel-source for the 2.6 kernel was on the list of available packages, I can't see the 2.4.
 
Old 05-07-2004, 08:52 AM   #7
d1ny3
Member
 
Registered: Apr 2004
Location: Sweden
Distribution: Mandrake 10.00
Posts: 43

Original Poster
Rep: Reputation: 15
OKey. so u dont know what to do ?
 
Old 05-07-2004, 09:13 AM   #8
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
What to do? Try a better distro. In my opinion, Mandrake 10 isn't worth the effort. It's too unstable.
 
Old 05-07-2004, 02:39 PM   #9
Baldrick
Member
 
Registered: Jan 2003
Posts: 35

Rep: Reputation: 15
I also had this problem.

Insert mandrake disc.
Log on as root and type urpmi kernel-source
The source code will be installed.
It should work!!

Don't give up on mandrake 10, it's a great distro!!
 
Old 05-26-2004, 04:53 PM   #10
random234
LQ Newbie
 
Registered: May 2004
Location: Refrath, Germany
Distribution: debian
Posts: 6

Rep: Reputation: 0
You have to add an link to your /usr/src Directory

ln -s /usr/src/kernel-2.X.X linux

so you match the Preconfigured Path of the Nvidia Installer.
this is an deprecated default configuration which was vital to compile an working 2.2 kernel. (Hope i'm right on this)
 
  


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
Kernel Audit Support Unavaible error when booting after kernel upgrade abefroman Red Hat 2 03-21-2013 08:32 AM
Kernel compilation error: Error 15: File not found Niceman2005 Linux - General 9 10-04-2007 03:45 AM
kernel panic error after rebooting new kernel image fiero Linux - General 4 07-13-2005 08:32 AM
Kernel 2.6.7 install error, initrd-2.6.7.img error jjorloff1 Linux - General 3 09-15-2004 12:15 AM
Problem booting up new kernel. Kernel panic error... RHLinuxGUY Red Hat 2 04-11-2004 04:59 AM

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

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