Caffe Install
- Install dependent packages
- Download source code, modify Makefile.config
- Make all
- ...
The above makes all operation when the PROTOBUF version is not correct, check the data found Caffe support is protobuf2.6, and my ubuntu17.10 above is 3.5~~.
protoc --version libprotoc 3.5.0
Workaround: Re-press the install protobuf2.6 version, below is the reference given in (Build Caffe and Pycaffe #5078) [https://github.com/BVLC/caffe/issues/5078]
We have the same problem...and it is because of the wrong version of protobuf首先你要卸载,并重装其要求的protobuf版本(2.6.1),之后重新编译就好了我卸载了protobuf3.0,重新安装了很多次的protobuf2.6.1,但都不行重装后:protoc --version 结果还是3.0如果你也这样,你需要的工作是:1。sudo find / -name protoc2。将2.6.1版本生成的protoc,替换掉找到的3.0版本的protoc然后就ok了我整整搞了两天good luck
Reference
Build Caffe and Pycaffe #5078
protobuf2.6 compiling
Https://askubuntu.com/questions/629654/building-caffe-failed-to-see-hdf5-h
ubuntu17.10 Caffe compiled and installed pits