我正在尝试在安装了Cuda的Ubuntu 14.04 EC2实例上安装cudamat。
安装脚本失败,“无法执行'nvcc':没有这样的文件或目录”。我添加了一行来回显环境变量$ PATH,它没有先前导出的shell变量:
(deeplearning) ubuntu@ip-x-x-x-x:~/cudamat$ sudo python setup.py install
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin running
install running bdist_egg running egg_info writing
cudamat.egg-info/PKG-INFO writing top-level names to
cudamat.egg-info/top_level.txt writing dependency_links to
cudamat.egg-info/dependency_links.txt reading manifest file
'cudamat.egg-info/SOURCES.txt' writing manifest file
'cudamat.egg-info/SOURCES.txt' installing library code to
build/bdist.linux-x86_64/egg running install_lib running build_py
running build_ext building 'cudamat.libcudamat' extension nvcc
-I/usr/include/python2.7 -c cudamat/cudamat.cu -o build/temp.linux-x86_64-2.7/cudamat/cudamat.o -O --ptxas-options=-v
--compiler-options=-fPIC unable to execute 'nvcc': No such file or directory error: command 'nvcc' failed with exit status 1
如果有人好奇,这是来自.bashrc的导出命令:
export PATH=/usr/local/cuda-7.5/bin:/home/ubuntu/.virtualenvs/deeplearning/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:
我确认我的路径设置了:
(deeplearning) ubuntu@ip-x-x-x-x:~/cudamat$ env
LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64
PATH=/home/ubuntu/.virtualenvs/deeplearning/bin:/usr/local/cuda-7.5/bin:/home/ubuntu/.virtualenvs/deeplearning/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games