Driver, toolkit and SDK installed, but nvcc doesn't work

Hi guys,

I’d just installed ubuntu 10.10. However after installin the driver, the toolkit 3.2 and the SDK, if I write nvcc -V it says that it doesn’t know nvcc…

Everything went well during the installation, although I’m not sure of the cuda path asked in the SDK installation. But I thought nvcc only depends of the driver and the toolkit.

What did I do wrong? (I know that i don’t have g++ installed, but gcc is)
Someone has any idea to help me ?

you should add path of cuda toolkit into PATH environment variable

export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH

if you don’t install CUDA toolkit into default directory, then

change /usr/local/cuda to installtion directory of CUDA toolkit

You also must install g++. CUDA requires a C++ compiler.