ubuntu16.04安装caffe出现的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_40155090/article/details/79926266
1.
./include/caffe/util/mkl_alternate.hpp:14:19: fatal error: cblas.h: No such file or directory
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/cudnn_lrn_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/cudnn_lrn_layer.o] Error 1
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/reduction_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/reduction_layer.o] Error 1
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/swish_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/swish_layer.o] Error 1
解决方法
$sudo apt-get install libblas-dev

2.
^CMakefile:594: recipe for target '.build_release/cuda/src/caffe/util/math_functions.o' failed
make: *** [.build_release/cuda/src/caffe/util/math_functions.o] Interrupt
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/absval_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/absval_layer.o] Interrupt
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/deconv_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/deconv_layer.o] Interrupt
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/cudnn_pooling_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/cudnn_pooling_layer.o] Interrupt
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/cudnn_softmax_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/cudnn_softmax_layer.o] Interrupt
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/cudnn_relu_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/cudnn_relu_layer.o] Interrupt
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/tanh_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/tanh_layer.o] Interrupt
Makefile:594: recipe for target '.build_release/cuda/src/caffe/layers/recurrent_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/recurrent_layer.o] Interrupt
解决方法
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install libopenblas-dev
sudo apt-get install python-dev
sudo apt-get install libgflags-dev
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
sudo apt-get update
sudo apt-get upgrade

猜你喜欢

转载自blog.csdn.net/qq_40155090/article/details/79926266