ubuntu16.04 cuda9.1 opencv3.3.1 caffe安装报错

本人新手一枚,在安装caffe是,前面的步骤都没问题,到执行 make all 这一步时,报错如下,在网上也没找到解决方案,跪求各位大佬帮忙解决。
collect2: error: ld returned 1 exit status
Makefile:626: recipe for target '.build_release/tools/caffe.bin' failed
make: *** [.build_release/tools/caffe.bin] Error 1




如果使用cmke .. 之后,执行 make all就会出现下面的问题
-- Generating done
-- Build files have been written to: /home/ran/caffe/build
Makefile:558: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1


如果我的语句改为
cmake ..
sudo make all
sudo make install
sudo make runtest 就会出现下面的问题
[----------] Global test environment tear-down
2123 tests from 281 test cases ran. (310596 ms total)
[ PASSED ] 2121 tests.
[ FAILED ] 2 tests, listed below:
[ FAILED ] BatchReindexLayerTest/2.TestGradient, where TypeParam = caffe::GPUDevice<float>
[ FAILED ] BatchReindexLayerTest/3.TestGradient, where TypeParam = caffe::GPUDevice<double>

2 FAILED TESTS
src/caffe/test/CMakeFiles/runtest.dir/build.make:57: recipe for target 'src/caffe/test/CMakeFiles/runtest' failed
make[3]: *** [src/caffe/test/CMakeFiles/runtest] Error 1
CMakeFiles/Makefile2:360: recipe for target 'src/caffe/test/CMakeFiles/runtest.dir/all' failed
make[2]: *** [src/caffe/test/CMakeFiles/runtest.dir/all] Error 2
CMakeFiles/Makefile2:367: recipe for target 'src/caffe/test/CMakeFiles/runtest.dir/rule' failed
make[1]: *** [src/caffe/test/CMakeFiles/runtest.dir/rule] Error 2
Makefile:253: recipe for target 'runtest' failed
make: *** [runtest] Error 2

我在知乎上也进行了提问:https://www.zhihu.com/question/264841152
已邀请:

ling_yu - 92年

赞同来自:

我也是这样,后来放弃用9.1, 改为9.0就可以了, 具体可以参考我的博客:
http://blog.csdn.net/linyu2016/article/details/78903243 (成功安装ubuntu16.04+cuda9.0+cuDNN7.0.5+caffe+digits(附错误汇总))

要回复问题请先登录注册