nV News Forums


nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Installing NVIDIA Drivers (http://www.nvnews.net/vbulletin/showthread.php?t=61677)

nfkb 12-15-05 06:03 PM

Installing NVIDIA Drivers

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


zander 12-15-05 06:10 PM

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...`.

nfkb 12-15-05 06:56 PM

Re: Installing NVIDIA Drivers

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 " "


netllama 12-15-05 07:03 PM

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.


siorai 12-15-05 11:09 PM

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.

nfkb 12-16-05 10:30 AM

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

All times are GMT -5. The time now is 12:18 PM.

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