|
|
#1 | |
|
Registered User
Join Date: Dec 2005
Posts: 4
|
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 |
|
|
|
|
|
|
#2 | |
|
NVIDIA Corporation
Join Date: Aug 2002
Posts: 3,740
|
You need to install the gcc-3.4 package and install the NVIDIA driver with `CC=gcc-3.4 sh /path/to/NVIDIA-Linux...`.
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Dec 2005
Posts: 4
|
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 |
|
|
|
|
|
#4 | |
|
NVIDIA Corporation
Join Date: Dec 2004
Posts: 8,763
|
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 |
|
|
|
|
|
|
#5 |
|
rawr
Join Date: Nov 2004
Posts: 118
|
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.
|
|
|
|
|
|
#6 | |
|
Registered User
Join Date: Dec 2005
Posts: 4
|
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 |
|
|
|
|
![]() |
| Thread Tools | |
|
|
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 | Latest Tech And Game Headlines | 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 |