LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-30-2006, 06:54 AM   #1
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Rep: Reputation: 30
Nvidia Gcc


I was trying to install the NVIDIA driver 8762 on my system. The installer however complains I havenīt used the right gcc.
I tried export CC but I cannot remeber the correct command to export CC to allow the Nvidia driver to install. Can anyone help?

I think more exactly what it wants is the libc development files , does anyone know the correct name ? I tried exporting what I thought was the correct gcc version 4.0.1, but it didnīt work. Still complains cannot find the make files.

Last edited by flebber; 05-30-2006 at 07:42 AM.
 
Old 05-30-2006, 07:57 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Exact error messages are always infinitely more useful.

To build a kernel module for the running kernel you need the kernel source for that specific version installed in /usr/src and you need to use the version of gcc used to compile it originally. Fun stuff huh?
 
Old 05-30-2006, 08:01 AM   #3
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
So I went to find the kernel source to install it. Looked to confirm my current kernel

[root@localhost flebber]# uname -r
2.6.12-19mdk-i586-up-1GB


Low and behold I don have that kernel source available in urpmi...what the...

[root@localhost flebber]# urpmi -s 2.6.12-19mdk-i586-up-1GB
unable to access hdlist file of "update_source", medium ignored
no package named 2.6.12-19mdk-i586-up-1GB

Last edited by flebber; 05-30-2006 at 08:03 AM.
 
Old 05-30-2006, 08:13 AM   #4
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
I would have just installed the plf but I receive this error message with that as well

Sorry, the following package(s) can't be selected:

nvidia-xorg-8762-0.1.20060plf



Does that mean I will have to install all new kernel and source 225mb just to get NVIDIA running ?

Last edited by flebber; 05-30-2006 at 08:29 AM.
 
Old 05-30-2006, 07:48 PM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Quote:
urpmi -s 2.6.12-19mdk
Try searching that way. none of the stuff after that indicates a patch or anything so you just the source for the same version.
 
Old 05-31-2006, 02:31 AM   #6
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
nah still the same result.

[root@localhost flebber]# urpmi -s 2.6.12-19mdk
unable to access hdlist file of "update_source", medium ignored
no package named 2.6.12-19mdk

I tried searching in rpmdrake under just kernel in descriptions an there is only 2.6.12-12 and 2.6.12-22.
 
Old 05-31-2006, 03:48 AM   #7
dexter11
Member
 
Registered: Apr 2005
Distribution: Mandriva
Posts: 197

Rep: Reputation: 30
Well you need a kernel and a matching source so I guess you have only one option left install 2.6.12-12 with the matching source.
 
Old 05-31-2006, 03:54 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you want to use nvidia drivers, I suggest that you use the default 2.6.x kernel instead of 2.6.12-19mdk-i586-up-1GB. The last time I tried to use 2.6.12-19mdk-i586-up-1GB, the nvidia drivers would not compile because the installer thought the kernel and source did not match. Using the default kernel worked flawlessly.
 
Old 05-31-2006, 06:31 AM   #9
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
I think that about sums my problem up. Well I am going to have to install a new kernel.

Which one ? Besides 2.6.12 I also have the option of the 2.6.14 kernel . I thought even numbers are suppossed to be more stable but has much been said about stability of this kernel (2.6.14). I can see slackware has 2.6.13 in the testing branch, and he tends to go for stable so why I wonder the .13 option.

Secondly, would I be able to get away with installing the kernel-source-stripped option with the new kernel. rather than the full source.

This just saves 140mb of download as stripped is 65Mb and full is 205Mb.

Last edited by flebber; 05-31-2006 at 06:33 AM.
 
Old 05-31-2006, 08:04 AM   #10
dexter11
Member
 
Registered: Apr 2005
Distribution: Mandriva
Posts: 197

Rep: Reputation: 30
The 2.6.12 kernels are the stable kernels in the current Mandriva release.
Even or odd kernel version numbers doesn't matter anymore since the 2.6 series came out. Linus changed the version numbering.
IMO stripped source should work just be careful the source should match the running kernel e.g. if you're using or upgrading now to 2.6.12-22mdk then the source should be 2.6.12-22mdk too.
 
Old 05-31-2006, 11:11 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Personally I wouldn't bother with the kernel-srtipped source packages because they are missing a lot of stuff thats in the full kernel source. If your read the full description of each package, you will find that some kernel packages are not for day to day use because they are stripped of certain things or are strictly for development purposes.
 
Old 05-31-2006, 04:05 PM   #12
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: debian stable
Posts: 394

Original Poster
Rep: Reputation: 30
Thanks everyone. Kernel 2.6.12-22 and the stripped source has worked perfectly.

Thanks Again.
 
  


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
nvidia and gcc JJX Linux - Software 2 10-10-2005 02:03 AM
gcc/nvidia question Afterburn1 Fedora 2 05-03-2005 12:03 AM
NVIDIA and GCC problems ASUComposer Linux - Hardware 15 12-14-2004 01:26 AM
NVidia Drivers gcc 3.2.2 thirdbanE Slackware 2 02-16-2003 09:42 PM
nvidia, gcc, and errors Independence Slackware 2 12-06-2002 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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