Install Glog Gflags
sudo apt-get install vim cmake git
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler
Install Protobuf
sudo apt-get install protobuf-compiler libprotobuf-dev libprotoc-dev
sudo apt-get install libprotobuf-c0-dev protobuf-c-compiler