$ 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 python-dev
$ sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
$ sudo apt-get install git
$ git clone https://github.com/bvlc/caffe.git
$ cd caffe
mv Makefile.config.example Makefile.config
$ gedit Makefile.config
打开CPU_ONLY:=1
$ make -j8
ubuntu14.04
$ sudo apt-get install --no-install-recommends libboost-all-dev
$ sudo apt-get install libatlas-base-dev
$ sudo apt-get install python-dev
$ sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
$ sudo apt-get install git
$ git clone https://github.com/bvlc/caffe.git
$ cd caffe
mv Makefile.config.example Makefile.config
$ gedit Makefile.config
打开CPU_ONLY:=1
$ make -j8
ubuntu14.04