LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices



Reply
 
Search this Thread
Old 10-24-2003, 02:10 PM   #1
SilenceX
LQ Newbie
 
Registered: Aug 2003
Location: Germany
Distribution: Mandrake 9.2
Posts: 3

Rep: Reputation: 0
Question Nvidia driver fails installation (again)


Hi there,

just in advance, I already read some other posts, but couldn't find a suitable answer.

I installed Mandrake 9.2 recently and in order to get the graphics right, I have to install the drivers provided by nvidia.

The installation routine wants to compile the kernel interface itself for it doesn't find a kernel it provides a precompiled interface for. But now, installation fails due to missing kernel headers.

I found the kernel-2.4.22.10mdk-1-1mdk.src.rpm source-rpm on a mandrake mirror. Well I installed it, but that didn't fix the problem either. So I browsed some directories and found the /usr/include/linux directory containing a lot of header files. Thus I ran the installer with the "--kernel-header-source" option passing the /usr/include directory. Then the compilation process didn't complain about missing headers, but failed again.

I have absolutely no idea what to do, to get that interface compiled.

Did anyone experienced the same problem too, or has at least an idea what to do?

Would appreciate that.

So long...
SilenceX
 
Old 10-24-2003, 06:14 PM   #2
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Freeslack
Posts: 1,714

Rep: Reputation: 106Reputation: 106
i just downloaded the kernel source from this site
ftp://mdk.linux.org.tw/pub/mandrake/...Mandrake/RPMS/

when i ran the installer
at first i got the "cannot find suitable blah blah"
then the installer kicked in as expected
now 3d accelerated properly
amegatron playing MUCH better than on 9.1
about to install ut2003 again
 
Old 10-24-2003, 08:48 PM   #3
SilenceX
LQ Newbie
 
Registered: Aug 2003
Location: Germany
Distribution: Mandrake 9.2
Posts: 3

Original Poster
Rep: Reputation: 0
So, now I found the problem causing the compilation abort. I installed the wrong package which included header files that do not belong to the kernel installed on my system.

Now, with the right header files, the nvidia drivers compiled successfully and are now working fine.
 
Old 04-11-2004, 08:58 PM   #4
starapple
LQ Newbie
 
Registered: Apr 2004
Location: Canada
Distribution: Mandrake 9.2
Posts: 15

Rep: Reputation: 0
SilenceX,

Can you say which is the correct package that you installed to get up and running? I'm getting a hernia trying to install a modem driver with thsi 9.2 and trying to find the correct kernel source. I can only find kernel-source-2.4.22-10mdk-i586.rpm while my system shows that I am running kernel 2.4.22.10mdk.1-1mdk.

Would appreciate a reply before I jump to Fedora/Red Hat or stick with Windows.

Tnanks.
 
Old 04-12-2004, 03:04 AM   #5
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Freeslack
Posts: 1,714

Rep: Reputation: 106Reputation: 106
2.4.22-10mdk is the correct number
it means you're runing the 2.4.22 kernel
so the sourse you found is correct
 
Old 04-12-2004, 10:27 AM   #6
starapple
LQ Newbie
 
Registered: Apr 2004
Location: Canada
Distribution: Mandrake 9.2
Posts: 15

Rep: Reputation: 0
Thanks salparadise,

I installed kernel-source-2.4.22-10mdk-i586.rpm and that didn't work, so I uninstalled it. I subsequently located kernel-2.4.22.10mdk-1-1mdk.src.rpm which I assume to be the source (and the correct one) but I can't seem to install this latter one.

Any clues?
 
Old 04-12-2004, 10:42 AM   #7
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Freeslack
Posts: 1,714

Rep: Reputation: 106Reputation: 106
.src.rpm need to be rebuilt
this is achieved with the following command

rpmbuild --rebuild name.of.package.src.rpm

when it's finished, the built rpm is to be found in /usr/src/RPM/i586/
 
Old 04-12-2004, 11:01 AM   #8
starapple
LQ Newbie
 
Registered: Apr 2004
Location: Canada
Distribution: Mandrake 9.2
Posts: 15

Rep: Reputation: 0
Thanks again salparadise.

I just found your reply to a post "Trouble installing an rpm..." and was about to log off and try. So, do I install the created rpm that's in the i586 directory or will it display in the packages list?
 
Old 04-12-2004, 12:45 PM   #9
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Freeslack
Posts: 1,714

Rep: Reputation: 106Reputation: 106
you need to manually install it
either by clicking on it (double clicking if you havent got the mouse set to single click)
or from the command line
 
Old 04-12-2004, 08:57 PM   #10
starapple
LQ Newbie
 
Registered: Apr 2004
Location: Canada
Distribution: Mandrake 9.2
Posts: 15

Rep: Reputation: 0
It's now 8:50 p.m. I started the rpm rebuild at 11:30 a.m. and stuff has been scrolling in a console window ever since. Is that normal? When will it end? I was about to do ctrl alt del or stop the session but I noticed that directories referred to in the console were actually filling with files and sub directories.

Seems this is going to be a long days journey into night. How long will this rebuild last?

Thanks.
 
Old 04-12-2004, 10:52 PM   #11
Frank_Drebin
Member
 
Registered: Feb 2004
Location: Atlanta, GA USA
Posts: 232

Rep: Reputation: 30
FYI---

When you are installing the Nvidia driver in console, if you get that message, dont reboot to X and go looking for the package. Look on CD 2 or 3 and just use rpm -ivh xxxx.rpm to install the source for your kernel then rerun the program. If you installed from CD, you have the kernel sources on the cd.

If you don't know how to do the above, try this

su -
password

mount /mnt/cdrom
find | grep kern*

it should show you the kernels and you can install the source once you know where it is on the CD.

rpm -ivh /mnt/cdrom/Mandrake/RPM3/kernelsource_you_found_using_grep_above

all done...
 
Old 04-12-2004, 11:16 PM   #12
starapple
LQ Newbie
 
Registered: Apr 2004
Location: Canada
Distribution: Mandrake 9.2
Posts: 15

Rep: Reputation: 0
Actually, I'm trying to install an Intel 537 modem driver. The sources aren't on the 9.2 downloaded CDs.

I think I'll just forget about Mandrake and try Red Hat and if that's the same experience I'll just be satisfied with Windows.

Last edited by starapple; 04-12-2004 at 11:18 PM.
 
Old 04-13-2004, 02:46 AM   #13
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Freeslack
Posts: 1,714

Rep: Reputation: 106Reputation: 106
well
i didn't expect it to take that long

the trouble with these things is
the longer you leave it, the closer you are to the end anyway

the kernel source, when unpacked is approxiamately 170MB
that's a lot of code to compile

be glad you aren't compiling kde from source, that takes about a week
 
Old 04-13-2004, 08:42 AM   #14
starapple
LQ Newbie
 
Registered: Apr 2004
Location: Canada
Distribution: Mandrake 9.2
Posts: 15

Rep: Reputation: 0
Quote:
Originally posted by salparadise
well
i didn't expect it to take that long

the trouble with these things is
the longer you leave it, the closer you are to the end anyway

the kernel source, when unpacked is approxiamately 170MB
that's a lot of code to compile

be glad you aren't compiling kde from source, that takes about a week
Well, I gave up at about 11 p.m. because it was going in a loop. The process seemed to be rewriting the directories and recreating the files it created in the first place. One moment there are 270 files and 10 directories total size 5.7 mb within, for eg, /drivers/char; next it's back to 212 files, 10 directories 4 mb.

That's one weeks worth of frustration in a day. Next question: uninstalling Mandrake on a dual boot system with XP.
 
Old 04-13-2004, 08:46 AM   #15
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Freeslack
Posts: 1,714

Rep: Reputation: 106Reputation: 106
I installed kernel-source-2.4.22-10mdk-i586.rpm and that didn't work

when you say didn't work
what do you mean?
 
  


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
[SOLVED] nvidia driver fails to start X (blank screen) gimblefish Linux - Hardware 2 08-30-2010 03:15 PM
nvidia driver fails on 3d but works on 2d samac Slackware 9 02-17-2005 06:58 AM
Trouble with new nVidia driver installation...no nvidia logo and KDE no start up mdb Linux - Software 8 08-18-2004 10:45 AM
startx fails after nVidia driver install scius Fedora 11 04-27-2004 02:33 PM
nvidia driver installation in 2.6.0 kernel fails? oskernel Linux - Hardware 8 10-30-2003 09:09 PM


All times are GMT -5. The time now is 10:50 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration