【caffe install】recipe for target 'xxx' failed

配置caffe的时候,老是出现这样的问题。

刚开始以为自己哪里参数没有修改。后来细看error,发现只是路径错了。

问题:

-- Install configuration: ""

-- Installing: /usr/local/lib/libgflags.a
CMake Error at cmake_install.cmake:36 (file):
  file INSTALL cannot copy file
  "/home/autumn/caffe/gflags-master/build/lib/libgflags.a" to
  "/usr/local/lib/libgflags.a".


Makefile:66: recipe for target 'install' failed

make: *** [install] Error 1


解决:

找到cmake_install.cmake,修改/usr/local为绝对路径

你可能感兴趣的:(【caffe install】recipe for target 'xxx' failed)