I tried building the CUDA SDK, but I got the following errors after doing “sudo make”:
make[1]: Entering directory /home/paul/NVIDIA_CUDA_SDK/common' ar: creating ./../lib/libcutil.a a - obj/release/bank_checker.cpp_o a - obj/release/cmd_arg_reader.cpp_o a - obj/release/cutil.cpp_o a - obj/release/stopwatch.cpp_o a - obj/release/stopwatch_linux.cpp_o a - obj/release/multithreading.cpp_o make[1]: Leaving directory /home/paul/NVIDIA_CUDA_SDK/common’
make[1]: Entering directory /home/paul/NVIDIA_CUDA_SDK/common' a - obj/release/paramgl.cpp_o a - obj/release/param.cpp_o make[1]: Leaving directory /home/paul/NVIDIA_CUDA_SDK/common’
make -C projects/bitonic/
make[1]: Entering directory /home/paul/NVIDIA_CUDA_SDK/projects/bitonic' make[1]: nvcc: Command not found make[1]: *** [obj/release/bitonic.cu_o] Error 127 make[1]: Leaving directory /home/paul/NVIDIA_CUDA_SDK/projects/bitonic’
make: *** [projects/bitonic/Makefile.ph_build] Error 2
I’m not sure why I get “make[1]: nvcc: Command not found” since I added the CUDA bin path to $PATH and the CUDA lib path to $LD_LIBRARY_PATH. When I type “nvcc” in the terminal, it works…
sudo is going to run make as root and is probably ignoring your user PATH setting as a security precaution. Since you have the SDK in your home directory, why not just run “make” without the sudo?
I have this same error. I’ve tried with ‘su’ or without. I’ve also given read/write permissions to all folders and subfolders. What did you do to resolve it?