LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Debian: Kernel + gcc not accepting graphic card driver (https://www.linuxquestions.org/questions/linux-kernel-70/debian-kernel-gcc-not-accepting-graphic-card-driver-764787/)

sd|| 10-27-2009 08:51 AM

Debian: Kernel + gcc not accepting graphic card driver
 
Few days back i have installed Debian Lenny 5.01 on my laptop!!

When i was installing nVidia driver for my graphic card (which is in .run format) i get an error that the kernel is compiled with gcc 4.1 and so the driver should be compiled with the same, but my system has gcc 4.3 pre-installed in it!! so what to do??

kernel version: 2.6.26-2-686

craigevil 10-27-2009 08:58 AM

Easiest way use smxi.

or do it the debian way: http://wiki.debian.org/NvidiaGraphicsDrivers

jens 10-27-2009 08:59 AM

That's mostly stupidity from nvidia's side, you don't need the same gcc version.

Just install gcc-4.1 (it's in your repo) and run this command (as root) before running the installer:
Code:

export CC=/usr/bin/gcc-4.1

sd|| 10-27-2009 10:57 AM

After going through the above procedure gcc problem was resolved but now i am facing the following error!! :(

ERROR: Unable to find the kernel source tree for the currently running kernel.
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' or 'kernel-devel' 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.

sd|| 10-27-2009 12:12 PM

i have now fixed it!!!!!!! :)

thank you all for your help!! :)

*************************thread closed***************************

jens 10-27-2009 12:18 PM

Just the headers are enough:
Code:

apt-get install linux-headers-`uname -r`
EDIT: ...ah... I'm really slow ;)


All times are GMT -5. The time now is 05:32 AM.