Set the environment variable CC to the gcc version of that one used to compile the kernel
→ export CC=“gcc-4.1” (check version)
For compiling the SDK you have to set a shortcut to g+±4.3 (maybe you have not to do this or got another version)
→ ln -s /usr/bin/g+±4.3 /usr/bin/g++
Before run the driver installation, copy(or rename) the file version.Debian to version.h in /usr/src/linux
Install the Driver 190.18 (I don’t know why, but I needed to set the kernel source path to the headers directory)
→ I changed to the console (Strg+Alt+F1) and stoped the xserver: /etc/init.d/gdm stop
→ sh cudadriver_2.3_linux_64_190.18.run --kernel-source-path=/usr/src/headers
→ and after install i started the xserver again: /etc/init.d/gdm start
Install the toolkit and the SDK (I choosed the default install path for both[/usr/local/cuda and /home/USER/NVIDIA_GPU_Computing_SDK])
→ sh cudatoolkit_2.3_linux_64_ubuntu9.04.run
→ sh cudasdk_2.3_linux.run
Place a file named cuda.conf in /etc/ld.so.conf.d with this content: /usr/local/cuda/lib64 (check the directory, if you choosed another for the installation and for a 32-bit version clear the 64 after lib)
Some additional stuff to do (you find the reason for it in Getting_Started_2.3_Linux.pdf)