Skip to content

Instantly share code, notes, and snippets.

@romanblanco
Created October 23, 2015 20:06
Show Gist options
  • Save romanblanco/e91700ed0ae41058153f to your computer and use it in GitHub Desktop.
Save romanblanco/e91700ed0ae41058153f to your computer and use it in GitHub Desktop.
Install Coffe on Ubuntu 15.10
apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
apt-get install -y --no-install-recommends libboost-all-dev
apt-get install -y libatlas-base-dev
apt-get install -y python-dev
apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev
apt-get install -y libhdf5-dev
apt-get install -y git
git clone https://github.com/BVLC/caffe.git
cd ~/caffe
cp Makefile.config.example Makefile.config
sed -i 's/# CPU_ONLY := 1/CPU_ONLY := 1/' Makefile.config
# https://github.com/NVIDIA/DIGITS/issues/156#issuecomment-114748074
find . -type f -exec sed -i -e 's^"hdf5.h"^"hdf5/serial/hdf5.h"^g' -e 's^"hdf5_hl.h"^"hdf5/serial/hdf5_hl.h"^g' '{}' \;
# https://github.com/NVIDIA/DIGITS/issues/156#issuecomment-114776706
cd /usr/lib/i386-linux-gnu/
ln -s libhdf5_serial.so.10.0.1 libhdf5.so
ln -s libhdf5_serial_hl.so.10.0.1 libhdf5_hl.so
cd -
make all
make test
make runtest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment