LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-08-2006, 11:12 AM   #1
piccolo solo
LQ Newbie
 
Registered: Apr 2006
Distribution: Ubuntu - Breezy
Posts: 16

Rep: Reputation: 0
gcc version check failed - installing LAN/audio drivers


I am trying to install nvidia sound/LAN drivers (Ubuntu - 2.6.12). I'm using a.run installer from NVIDIA. when I run I am getting this

"No precompiled kernel interface was found to match your kernel; this means that the installer will need to compile a new kernel interface"

I OK this and then get:

gcc-version-check failed:
./nvsound/main/conftest.sh: line 9: cc: command not found
Could not compile gcc-version-check.c

gives option to ignore and continue installation or abort and set CC environment variable

If I ignore I get some stuff about configuring kernel sources that is beyond me

can someone please help. I have been trying to sort this for 3 days.
cheers
Picc
 
Old 04-08-2006, 11:20 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Type the command ' gcc --version '. If it reports nothing or command not found then you need to install gcc.

Brian1
 
Old 04-08-2006, 11:28 AM   #3
piccolo solo
LQ Newbie
 
Registered: Apr 2006
Distribution: Ubuntu - Breezy
Posts: 16

Original Poster
Rep: Reputation: 0
thanks. am getting somewhere. I installed gcc 4 but now message says I need version 3.4 - where can I get this?

thanks
 
Old 04-08-2006, 03:04 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Haven't got into gcc4 yet but on the homepage of gcc there are links about running more than one gcc version on a system. Not sure of the work around to make apps looking for gcc to use gcc4. I am sure there is a hack to this.

Brian1
 
Old 04-08-2006, 04:25 PM   #5
piccolo solo
LQ Newbie
 
Registered: Apr 2006
Distribution: Ubuntu - Breezy
Posts: 16

Original Poster
Rep: Reputation: 0
thanks for your replies Brian

It's 3.4 I need to use. I've downloaded 3.4 from gcc. and extracted the tar. I am COMPLETELY lost with the installation instructions.

I know the idea is to learn this Linux thing gradually, but I've been trying to get online for 3 days.

Can anyone please point me to step by step instructions on getting gcc3.4 onto my system.

Then I can happily suss everything else out gradually.

thanks
Picc

Last edited by piccolo solo; 04-08-2006 at 04:27 PM.
 
Old 04-09-2006, 10:04 AM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Downloaded a copy of gcc-3.4.6 and read the faq file about installing multiple versions of gcc. First part talks about using symbolic link to which gcc version you are going to use. The way they say is a bit confusing to me but this is the way I would do it. You already have gcc4 installed and I assume the gcc command is at /usr/bin/gcc. Do a ' whereis gcc ' command to loacte it. And to make sure it is version 4 type ' gcc --version '. If both check out ok then do the following.

Rename gcc to gcc4 ' mv /usr/bin/gcc /usr/bin/gcc4
Download gcc-3.4.6 and extract it somewhere. Run the following commnads
./configure --prefix=/usr/local/gcc-3.4.6
make
make install

Not sure what will exactly happen but do the following. After the make install command do the same as above ' whereis gcc ' and ' gcc --version '

If it shows version 3.4.6 and is in /usr/bin then do it this way ' mv /usr/bin/gcc /usr/bin/gcc3 '

if not and shows command not found and /usr/local/bin/gcc for the path then do the following. ' cp /usr/local/gcc-3.4.6/bin/gcc /usr/bin/gcc3 '

Now you need to make a symbolic link to the compiler you want to use at the time to compile with.
For version 3 ' ln -fs /usr/bin/gcc3 /usr/bin/gcc '
or
For version 4 ' ln -fs /usr/bin/gcc4 /usr/bin/gcc '

Now type ' gcc --version ' before compiling to which one is set.

Hope this helps.
Brian1
 
Old 04-09-2006, 10:27 AM   #7
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
You don't need gcc 3.4, the nforce drivers build fine with gcc 4 I've installed them a few times myself, they work fine. The problem is you don't everything you need installed to build the drivers, a lot of these newbie-friendly distros like Ubuntu don't have it installed by default which in my opinion sucks ass.

A Debian/Ubuntu user should come along and verify/correct what I say here but something like this should install the necessary tools for you.
Code:
apt-get install build-essentials kernel-source ???
# the ??? are because i'm not sure if build-essentials will pull in the current gcc and glibc headers etc
EDIT: Unless your kernel was built using gcc 3.4, you need to use the same version of gcc to build modules as was used to build the kernel. If you install what i said above and rebuild your kernel with gcc 4 then you can install the nforce packages and it shouldn't be too difficult at all using your old .config file

Last edited by cs-cam; 04-09-2006 at 10:34 AM.
 
Old 04-09-2006, 11:37 AM   #8
piccolo solo
LQ Newbie
 
Registered: Apr 2006
Distribution: Ubuntu - Breezy
Posts: 16

Original Poster
Rep: Reputation: 0
thanks for input folks

I'm getting really frustrated now.
I managed to get gcc3.4 installed this morning. Then I got this when running the installer
Reports are as follows:
No precompiled kernel interface found to match kernel etc
I believe this doesnt matter so I OK this.

gcc-version-check failed
gcc -v returned version 3.4.5 (I think this was the correct one to install according to the nvidia install log.

so I choose to continue with install.

module build status bar ran to 100% then:
Unable to load the kernel module 'nvnet.ko' This is most likely because the kernel module was built using the wrong kernel source files. Please make sure you have installed the kernel source files for your kernel ..... you may specify kernel source path etc etc...

any advice would be welcomed - thank you
 
Old 04-09-2006, 06:53 PM   #9
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Looks good there. Thanks for the info there cs-cam. I figured the edit part was needed as reading the post. Will make a note of that.

Brian1
 
  


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
installing another version of gcc kulmis Linux - Newbie 3 06-21-2005 02:24 PM
failed make check on:Linux from Scratch - Version SVN-20050524 - 6.11. Glibc-2.3.5 jery_wang2002 Linux From Scratch 3 06-02-2005 03:44 PM
nvidia drivers, gcc-version-check failed Seiken Slackware 26 02-25-2005 10:50 PM
all audio drivers failed to initialize superxav Mandriva 1 01-31-2005 11:30 AM
check glibc version used by gcc carboncopy Slackware 3 08-12-2003 06:24 AM

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

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