LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-20-2008, 03:17 AM   #1
doraimom
Member
 
Registered: Nov 2005
Posts: 235

Rep: Reputation: 30
Problem installing NVIDIA drivers - gcc and headers


Hi.
I was about to install nvidia drivers again in my notebook, but I got a message saying the gcc version in my computer is 4.3 but the gcc version that was used to build/rebuild or something like that the kernel with nvidia is version 4.1. It askes me if I want to continue or about.

What should I do? Is it possible to continue the installation with no problems?

I tried to unstall gcc and gcc 4.3, and leave installed only gcc 4.1 and gcc 4.1 base, but if I do that NVIDIA drivers complain about CC not being installed. When I install again through synaptics GCC (4.3) and gcc 4.3 base, it doesnt complain about any lack of CC tool, but later in the installation it complains, as I said, about GCC 4.3 installed and gcc 4.1 used to build the kernel not being the same version.

I believe it will work fine If I just choose ignore it, but I'm not sure. So, I'm here asking for your help people.
Thanks
 
Old 11-20-2008, 05:18 AM   #2
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 128Reputation: 128
put
CC=gcc-4.1
before the sh command. Make sure that gcc-4.1 is installed.
 
Old 11-20-2008, 11:51 AM   #3
doraimom
Member
 
Registered: Nov 2005
Posts: 235

Original Poster
Rep: Reputation: 30
so I have to type?

cc=gcc-4.1 sh NVIDIA........

IS that it??
 
Old 11-20-2008, 12:06 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by doraimom View Post
so I have to type?

cc=gcc-4.1 sh NVIDIA........

IS that it??
No. What he suggested was "CC=gcc-4.1 sh NVIDIA.....".

But, I have my doubts as to whether that will actually fix the problem. Looking into the .run file, I see this option: --no-cc-version-check"

So try running it this way, instead.
Code:
sh NVIDIA.........      --no-cc-version-check
This may not work, either. You may need to either compile your own kernel, or find one that is compiled with the same version of gcc as your NVIDIA driver.

From the .run file:
Code:
    echo "  --no-cc-version-check"
    echo "      The NVIDIA kernel module should be compiled with the same"
    echo "      compiler that was used to compile the currently running"
    echo "      kernel. The layout of some Linux kernel data structures may"
    echo "      be dependent on the version of gcc used to compile it. The"
    echo "      Linux 2.6 kernel modules are tagged with information about"
    echo "      the compiler and the Linux kernel's module loader performs"
    echo "      a strict version match check. nvidia-installer checks for"
    echo "      mismatches prior to building the NVIDIA kernel module and"
    echo "      aborts the installation in case of failures. Use this"
    echo "      option to override this check."
 
Old 11-20-2008, 12:09 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Normally I ignore the error and carry on. But you can run command: export CC=gcc-4.1 before running the NVIDIA script.

Last edited by Junior Hacker; 11-20-2008 at 12:14 PM. Reason: Better choice of wording
 
Old 11-20-2008, 12:30 PM   #6
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
Or you could follow the exact same advice you got to the exact same question: http://forums.debian.net/viewtopic.php?t=33076
 
Old 11-20-2008, 03:39 PM   #7
doraimom
Member
 
Registered: Nov 2005
Posts: 235

Original Poster
Rep: Reputation: 30
Hi

export CC=/usr/bin/gcc-4.1
sh NVIDIA.....

worked just fine. The program didn`t complain anymore about versions of gcc.

Thanks.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing Nvidia drivers bkskaggs Linux - Hardware 4 11-07-2006 08:27 AM
Problem installing nvidia drivers in 2.6.0 Marcan Linux - Software 12 07-20-2006 02:55 AM
Nvidia drivers and kernel headers not found? M$ISBS Slackware 6 07-11-2006 01:21 PM
Problem while installing nvidia drivers... psydude Linux - Newbie 2 08-30-2003 02:50 PM
Problem installing NVIDIA 43.49 drivers Aurra Sing Linux - Software 5 04-25-2003 06:44 PM


All times are GMT -5. The time now is 11:42 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
Open Source Consulting | Domain Registration