Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save g10guang/d75ccd68482523b90a92510801036f8f to your computer and use it in GitHub Desktop.
Save g10guang/d75ccd68482523b90a92510801036f8f to your computer and use it in GitHub Desktop.
Steps to Install google protobuf on Mac
wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.bz2
tar xvf protobuf-2.5.0.tar.bz2
cd protobuf-2.5.0
./configure CC=clang CXX=clang++ CXXFLAGS='-std=c++11 -stdlib=libc++ -O3 -g' LDFLAGS='-stdlib=libc++' LIBS="-lc++ -lc++abi"
make -j 4 
sudo make install
protoc --version

fork form: https://gist.github.com/rajkrrsingh/77f3c4d20c109c96a3e9b36c224c6b3d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment