最初のステップは、protobuf をダウンロードすることです
https://github.com/google/protobuf/archive/v3.0.0.zip
protobuf-3.0.0 フォルダーに入ったら、autogen.sh を見つけて編集します。
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
2番目のステップは、gmockをダウンロードすることです
ダウンロードした gmock-1.7.0.zip を protobuf-3.0.0 フォルダーに配置します。
埋め込む
./autogen.sh
./configure
make
make check
sudo make install