I hope this is the right place to post this as its a sw issue, im running debian wheezy distro, and compiled a custom 3.7.1 kernel, properly configured for my hardware, my pc is an old one but does the job, i got all the hardware up and running but im having problems to install my nvidia drivers my gpu chip is an nvidia GeForce 6150SE which is known that it doesnt work with nouveau driver so i need to install the official nvidia legacy drivers, ive installed the driver in previous kernel updates without problems heres the procedure and the logs.
1.-when i run #NVIDIA*.run i get:
ERROR: The kernel header file '/usr/src/linux-headers-3.7.1/include/linux/version.h' does not exist. The most likely reason for this is that the kernel source files in '/usr/linux-headers-3.7-1' have not been configured.
2.-in my research quest ive found a few guys that had similar problems while installing nvidia drivers, some of them solve them installing their kernels source and kernel headers so i did this:
#/usr/src/linux-3.7.1/make-kpkg kernel_source kernel_headers
#/usr/src/dpkg -i linux-headers-*.deb
#/usr/src/dpkg -i linux-source*.deb
#dpkg -l | grep linux-headers
then i tried to run the script pointing it to where the sources are
#sh NVIDIA*.run --kernel-source-path /usr/src/linux-headers-3.7.1
no luck same error.
after succesfully installed the kernels version headers the same errors pop ups in the nvidia script, apparently in new kernel releases file "version.h" is generated in another location:
so i made a symbolink link to where the nvidia script searches version.h
#ln /usr/src/linux-3.7.1/include/generated/uapi/linux/version.h /usr/src/linux-3.7.1/include/linux
ran the script again and now i recieve a different error:
Error: If you are using a Linux 2.4 kernel, please make sure
you either have configurd kernel sources matching your kernel or the correct set of kernel headers installed in your system
after that error i rm'ed the symbolink link in linux headers
this is the /var/log/nvidia-installer.log:
nvidia-installer command line:
Using: nvidia-installer ncurses user interface
-> Licence Accepted.
-> Installing NVIDIA driver version 304.64.
-> There appears to be already a driver installed on your system (version: 304.64). As part od installinf this driver (version 304.64)
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Using the kernel source path '/usr/src/linux-headers-3.7.1' as specified by the '--kernel-source-path' command line option.
ERROR: The kernel header file '/usr/src/linux-headers-3.7.1/include linux/version.h' does not exist, most likely reason fot that is that the kernekl source files in '/usr/src/linux-headers-3.7.1' have not been configured.
Note: Graphics hardware is running fine in another kernel, thats why it detects another nvidia installation.
Im out of ideas, some help would be appreciated.
thanks in advance.