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 |
|
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 |
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. |
i have now fixed it!!!!!!! :)
thank you all for your help!! :) *************************thread closed*************************** |
Just the headers are enough:
Code:
apt-get install linux-headers-`uname -r` |
All times are GMT -5. The time now is 05:32 AM. |