Forked from rajkrrsingh/Google protobuf installation on Mac
Last active
February 19, 2018 13:58
-
-
Save Rub21/23861ccff3e55e49e1ed259e9cfa2187 to your computer and use it in GitHub Desktop.
Steps to Install google protobuf on Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://github.com/google/protobuf/releases/download/v2.6.0/protobuf-2.6.0.tar.bz2 | |
tar xvf protobuf-2.6.0.tar.bz2 | |
cd protobuf-2.6.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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment