mac protobuf 环境

  1. github clone protobuf 源码
  2. cd 到 protobuf 源码 路径
  3. ./autogen.sh
  4. ./configure --prefix=/Volumes/HHD/DevEnvironment/protobuf
  5. make check
  6. make
  7. make install
  8. vim .zshrc
  9. export protoc_my=/Volumes/HHD/DevEnvironment/protobuf/bin/protoc
  10. protoc --version

你可能感兴趣的:(mac protobuf 环境)