You are on page 1of 3

sftp://gpu-aai/opt/Harsha

aai@321

Probably you do not have boost installed on your machine

sudo apt-get install --no-install-recommends libboost-all-dev

Installing opencv for python is not sufficient. You also need to do

sudo apt-get install libopencv-dev

src/caffe/net.cpp:8:18: fatal error: hdf5.h

sudo apt-get install libhdf5-10 libhdf5-serial-dev

/include/caffe/util/mkl_alternate.hpp:11:19: fatal error: cblas.h:

sudo apt-get install libopenblas-dev

sudo apt-get install libleveldb-dev

sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev

sudo apt-get install libgl1

sudo apt-get install libadns1


sudo apt-get install libadns1-dev
sudo apt-get install libev-dev (redis-levelDB dependency)
sudo apt-get install libgmp-dev (redis-levelDB dependency)

Then these modules need to be install with pip inside the virtual environment:

sudo apt-get update


sudo apt-get install python-pip python-virtualenv python-dev libfreetype6-dev \
screen g++ python-tk unzip libsnappy-dev
sudo apt-get install libssl-dev libfreetype6-dev python-numpy

Following the Ubuntu Installation instructions...

Launch a new g2.2xlarge instance on AWS


Install the NVIDIA driver
Install CUDA 7.5
Follow steps below to clone the repo and build the RC3 release.
# Git clone BVLC/caffe
sudo apt-get update
sudo apt-get install -y git
mkdir Workspace && cd Workspace
git clone https://github.com/BVLC/caffe.git
cd caffe && git checkout -b rc3-build rc3

# Caffe RC3 with ATLAS


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 libgflags-dev libgoogle-glog-dev liblmdb-dev
sudo apt-get install libatlas-base-dev # ATLAS

cd ~/Workspace/caffe && cp Makefile.config.example Makefile.config


make all # -j8
make test
make runtest

# PyCaffe
sudo apt-get install -y python-dev
make pycaffe

/usr/local/lib/python2.7/dist-packages/numpy

sudo apt install nvidia-cuda-toolkit

I think the reason is you use make to compile, which makes caffe's python port only
find libraries in this catalog. Maybe you use cmaketo compile and it could work.
make clean
cd caffe-master
mkdir build
cd build
cmake ..
make all -j8
I hope I could help you!

You might also like