I am trying to install 64-bit cuda 5.5.22 on ubuntu 12.04.4 LTS 64-bit. I am using the .run file (as noted on the downloads page, the .deb file doesn’t work).
I can’t seem to get it to work. It fails with the error: “The driver installation is unable to locate the kernel source. Please make sure that the kernel source packages are installed and set up correctly. If you know that the kernel source packages are installed and set up correctly, you may pass the location of the kernel source with the ‘–kernel-source-path’ flag.”
I’ve installed the linux headers with
sudo apt-get install linux-headers-$(uname -r)
I’ve tried variations on “kernel-source-path”, such as
sudo ./cuda_5.5.22_linux_64.run --kernel-source-path /usr/src/linux-headers-3.11.0-15
But none of it is working.
Looking at the logs, there’s this error:
-> Building kernel module: executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.11.0-15-generic/build SYSOUT=/lib/modules/3.11.0-15-generic/build'... NVIDIA: calling KBUILD... test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false)
I’ve put the entire error log on pastebin here.