我试图安装caffe,并且" sudo make all"命令崩溃

时间:2017-09-08 09:46:51

标签: makefile caffe

我试图安装caffe,并且" make all"命令崩溃在这一行:

coe@coe:~/deep-learning/caffe$ sudo make all
[sudo] password for coe: 
NVCC src/caffe/layers/hdf5_output_layer.cu
make: /usr/local/cuda/bin/nvcc: Command not found
Makefile:595: recipe for target '.build_release/cuda/src/caffe/layers/hdf5_output_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/hdf5_output_layer.o] Error 127

这是我从sudo make all命令收到错误后的截图:

enter image description here

2 个答案:

答案 0 :(得分:1)

您的操作系统无法识别nvcc命令。

验证此运行命令/usr/local/cuda/bin/nvcc --version。 如果失败,则意味着:

  1. 可执行文件的路径错误
  2. 程序未在您的操作系统上安装
  3. 验证是否可以通过包管理器安装它。

答案 1 :(得分:0)

来自Caffe installation instructions

  

Caffe需要CUDA nvcc编译器来编译其GPU代码和CUDA   GPU操作的驱动程序。要安装CUDA,请转至NVIDIA CUDA   网站并按照安装说明进行操作。安装   库和最新的独立驱动程序分开;司机   捆绑在图书馆通常是过时的。警告! 331. *   CUDA驱动程序系列存在严重的性能问题:请勿使用它。

您的系统没有nvcc。安装它。