Caffe is an efficient, deep learning framework. It can be executed either on the CPU or on the GPU.
The following is an introduction to the Caffe configuration compilation process on Ubuntu without Cuda:
1. Install the blas:$ sudo apt-get install Libatlas-base-dev
2. Install 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 Glog (download from http://download.csdn.net/download/chenguangxing3/6661667): $ tar zxvf glog-0.3.3.tar.gz, $ cd glog-0.3.3 , $./configure, $make, $ sudo make install
4. Install gflags (download from Https://github.com/gflags/gflags), execute: $ unzip gflags-master.zip, $CD Gflags-master, $ mkdir Build , $ CD build, $ export cxxflags= "-fpic", $cmake: , make verbose=1, $ make, $ sudo make install
5. Install lmdb:$ git clone git://gitorious.org/mdb/mdb.git, $ Cdmdb/libraries/liblmdb, $ make, $ sudo make install
6. Download caffe:$ git clone git://github.com/bvlc/caffe.git
7. Install Caffe: (1), $ CP Makefile.config.example Makefile.config (2), modify Makefile.config file: Remove comment, cpu_only:= 1 (3), $ make a LL (4), $ make test (5), $ make runtest
Note : If you add the Libgflags-dev libgoogle-glog-dev Liblmdb-dev entry in step 2nd, you can omit the 3rd, 4, and 5 steps for a separate installation of Glog, GFlags, and Lmdb.
Ubuntu 14.04 64-bit on-machine Caffe with no CUDA support