**General dependencies**
- sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev
+ 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
**CUDA**: Install via the NVIDIA package instead of `apt-get` to be certain of the library and driver versions.
Everything is packaged in 14.04.
- sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler
+ sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
**Remaining dependencies, 12.04**