The first step is to download protobuf
https://github.com/google/protobuf/archive/v3.0.0.zip
After entering the protobuf-3.0.0 folder, find autogen.sh to edit:
Comment out autogen.sh
# echo "Google Mock not present. Fetching gmock-1.7.0 from the web..."
# curl $curlopts -O https://googlemock.googlecode.com/files/gmock-1.7.0.zip
The second step is to download gmock
Place the downloaded gmock-1.7.0.zip in the protobuf-3.0.0 folder
implement
./autogen.sh
./configure
make
make check
sudo make install