CentOS7 Installation Caffe
Install Dependency Pack
sudo yum install protobuf-devel leveldb-devel snappy-devel opencv-devel boost-devel hdf5-devel
sudo yum install Gflag S-devel glog-devel lmdb-devel
sudo yum install Openblas-devel
Install Caffe
Wget-c https://github.com/BVLC/caffe/archive/1.0.tar.gz
tar zxvf 1.0.tar.gz
CD caffe-1.0
CP Makefile.config.example Makefile.config
Since I'm just testing that the machine does not have a GPU, you need to use Cpu_only mode, edit the Makefile.config, and open the line below
Cpu_only: = 1
Then, compile the installation
Make-all-test-make
runtest
problem
Question one
The following error occurred while compiling
./include/caffe/util/mkl_alternate.hpp:14:19:fatal error:cblas.h:no such file or directory
Solutions
sudo yum install liblas-devel atlas-devel
question two
The following error occurred while compiling
/usr/bin/ld:cannot Find-lcblas
/usr/bin/ld:cannot Find-latlas
This issue can be addressed by installing Libatlas-base-dev packages for Ubuntu, as follows:
sudo apt install Libatlas-base-dev
But for CentOS7, without this package, you can edit the Makefile.config file by modifying the compilation parameters using Openblas,
Modified before
BLAS: = Atlas
Modified
BLAS: = Open
Then, re-execute
Make-all-test-make
runtest