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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-08-2006, 11:12 AM
|
#1
|
LQ Newbie
Registered: Apr 2006
Distribution: Ubuntu - Breezy
Posts: 16
Rep:
|
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
|
|
|
04-08-2006, 11:20 AM
|
#2
|
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:
|
Type the command ' gcc --version '. If it reports nothing or command not found then you need to install gcc.
Brian1
|
|
|
04-08-2006, 11:28 AM
|
#3
|
LQ Newbie
Registered: Apr 2006
Distribution: Ubuntu - Breezy
Posts: 16
Original Poster
Rep:
|
thanks. am getting somewhere. I installed gcc 4 but now message says I need version 3.4 - where can I get this?
thanks
|
|
|
04-08-2006, 03:04 PM
|
#4
|
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:
|
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
|
|
|
04-08-2006, 04:25 PM
|
#5
|
LQ Newbie
Registered: Apr 2006
Distribution: Ubuntu - Breezy
Posts: 16
Original Poster
Rep:
|
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.
|
|
|
04-09-2006, 10:04 AM
|
#6
|
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:
|
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
|
|
|
04-09-2006, 10:27 AM
|
#7
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
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.
|
|
|
04-09-2006, 11:37 AM
|
#8
|
LQ Newbie
Registered: Apr 2006
Distribution: Ubuntu - Breezy
Posts: 16
Original Poster
Rep:
|
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
|
|
|
04-09-2006, 06:53 PM
|
#9
|
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:
|
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
|
|
|
All times are GMT -5. The time now is 01:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|