[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem in installing nvidia driver



Hello

James Ng Yuen Sum (<james_nghk_debian_user@yahoo.com.hk>) wrote:

> I am trying to install the nvidia driver for my geforce 2 mx 400
> display card. I have read the mailing lists here about the
> installation problem others have encountered. But when I download it
> and run, I cannot install it correctly. I have added the path of my
> kernel-headers file, but it still cannot run it. Here is my
> /var/log/nvidia-installer.log
> 
>> nvidia-installer log file '/var/log/nvidia-installer.log'
>> creation time: Thu Nov 6 16:08:46 2003

>> [...]

>> You appear to be compiling the NVIDIA kernel module with
>> a compiler different from the one that was used to compile
>> the running kernel. This may be perfectly fine, but there
>> are cases where this can lead to unexpected behaviour and
>> system crashes.
>>
>> If you know what you are doing and want to override this
>> check, you can do so by setting IGNORE_CC_MISMATCH.
>>
>> In any other case, set the CC environment variable to the
>> name of the compiler that was used to compile the kernel.

Well, the log tells you what the problem is. The gcc version you use is
different from the one used to compile your kernel. Use gcc --version
to check which one is used for the driver and dmesg | grep version to
find out which one was used for the kernel. Set IGNORE_CC_MISMATCH or
use the same kernel if possible (check where /etc/alternatives/cc and
/usr/bin/gcc point to).

>> sh NVIDIA-Linux-x86-1.0-4496-pkg2.run
>> --kernel-include-path=/usr/src/kernel-headers-$(uname -r)/include

Maybe you can /have to leave out the /include part of the path (works
for me without it).

best regards
        Andreas Janssen

-- 
Andreas Janssen
andreas.janssen@bigfoot.com
PGP-Key-ID: 0xDC801674
Registered Linux User #267976



Reply to: