1. Install Blas:
$ sudo apt-get install Libatlas-base-dev
2. Install the dependencies:
$ sudo apt-get install Libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev Libhdf5-serial-dev Protobuf-compiler Liblmdb-dev
3. Install additional dependencies:
$ sudo apt-get install Libgflags-dev libgoogle-glog-dev Liblmdb-dev
4. Download Caffe:
$ git clone git://github.com/bvlc/caffe.git
Because of the slow download speed, this step can be directly used by others to download the Caffe package (Caffe-master)
5. Install Caffe:
(1), $ CP Makefile.config.example Makefile.config
(2), modify the Makefile.config file: Remove the comment, cpu_only:= 1 (if you compile Caffe with CUDA support, this step should be commented out cpu_only:= 1)
(3), $ make all
(4), $ make test
(5), $ make runtest
6. Testing with the Mnist data set
See the sixth step of the reference (2)
Reference:
(1) http://blog.csdn.net/fengbingchun/article/details/45535741/
(2) http://blog.csdn.net/u014696921/article/details/52156552
(3) http://www.cnblogs.com/outline/p/4381464.html
Caffe Environment (Ubuntu14.04 64bit, no Cuda,caffe running under the CPU)