Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-15-05, 06:03 PM   #1
nfkb
Registered User
 
Join Date: Dec 2005
Posts: 4
Default Installing NVIDIA Drivers

Hello

I'm newbie with Linux and i've installed today a ubuntu 5.1

My NVIDIA card is a GeFORCE 5700. X runs well with the nv driver.

I'd like to see if X is faster with the new nvidia driver so i decided to try to install the nvidia drivers.

I installed on my system the kernel sources (2.6.12-10) and headers, but due to package depedencies the synaptic ubuntu thing installed gcc 4

I killed X and launched the installer

ANd well it says that my kernel has no binaries so it needs to rebuild the module but it doesn't like my gcc 4... gcc 3.4 is installed too i think but there might be a VARIABLE problem (CC=?) but i don't know how to fix this...

here are extracts from my /var/log/nvidia-installer.log

-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Performing CC test with CC="cc".
-> gcc-version-check failed:


You appear to be comiling the NVIDIA kernel module with a different compiler
than the one that was used to compile the running kernel. The Linux 2.6 ker
nel module loader rejects kernel modules built with a version of gcc that do
es not exactly match that of the compiler used to build the running kernel.
The compiler used to compile the kernel was gcc 3.4; the current compiler is
gcc 4.0.

and at the end :

> Kernel module compilation complete.
ERROR: Unable to load the kernel module 'nvidia.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 and that they are properly configured; on Red Hat Linux systems,
for example, be sure you have the 'kernel-source' RPM installed. If you
know the correct kernel source files are installed, you may specify the
kernel source path with the '--kernel-source-path' command line option.
-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
-1 Invalid module format

thanks a lot in advance for your help

remi
nfkb is offline   Reply With Quote
Old 12-15-05, 06:10 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Installing NVIDIA Drivers

You need to install the gcc-3.4 package and install the NVIDIA driver with `CC=gcc-3.4 sh /path/to/NVIDIA-Linux...`.
zander is offline   Reply With Quote
Old 12-15-05, 06:56 PM   #3
nfkb
Registered User
 
Join Date: Dec 2005
Posts: 4
Default Re: Installing NVIDIA Drivers

hello

first thank you for helping me

sorry for the newbie attitude but with my distro (Ubuntu) i've to run the sudo command i cannot log as root

so i launch suro sh /home/nfkb/NVIDIA stuff

what should i exactly type to specify the CC=gcc-3.4 because

sudo cc=gcc-3.4 sh NVIDIA does't work nor with ' ' or " "

thanks
nfkb is offline   Reply With Quote
Old 12-15-05, 07:03 PM   #4
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: Installing NVIDIA Drivers

First, I'd suggest doing a "sudo su -" to become root so that you're not appending all of this through sudo.

After that, you can do:
export CC=gcc-3.4 #note that the CC is capitalized

Then just install the driver as normal.

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 12-15-05, 11:09 PM   #5
siorai
rawr
 
siorai's Avatar
 
Join Date: Nov 2004
Posts: 118
Default Re: Installing NVIDIA Drivers

Seeing as how you're using Ubuntu 5.10, you might as well check out this thread: General - HOWTO: Latest NVIDIA drivers on the Ubuntu boards. I followed Method 2 and it went perfectly.
siorai is offline   Reply With Quote
Old 12-16-05, 10:30 AM   #6
nfkb
Registered User
 
Join Date: Dec 2005
Posts: 4
Default Re: Installing NVIDIA Drivers

with the CC and export bash command it's ok

thanks !

GeFORCE 5700 on a sony VAIO-V3S rules thanks a lot to the nvidia development team
nfkb is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
monitor not recognised after installing nvidia drivers Horaciusl NVIDIA Linux 3 08-10-12 10:59 PM
NVIDIA Drivers Receive Windows 8 Certification News Archived News Items 0 06-01-12 05:30 AM
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
Radeon 9700 not all that? sancheuz Other Desktop Graphics Cards 200 10-12-02 09:31 PM
NVIDIA 2960 Drivers & RH 7.3 W/2.4.18-5 XASCompuGuy NVIDIA Linux 6 08-02-02 11:53 AM

All times are GMT -5. The time now is 05:10 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.