1.下载protobuf protobuf下载地址:https://codeload.github.com/google/protobuf/zip/v3.2.0 2.执行 cd protobuf-3.2.0 3.执行 ./configure ,如果报错 没有那个文件或目录,执行 ./autogen.sh. 4. 再执行 ./configure 5. 再执行 make 6. 再执行 make install