1. 程式人生 > >ubuntu16.04安裝caffe出現的問題

ubuntu16.04安裝caffe出現的問題

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