美文网首页
Install protobuf 3.5 on Ubuntu 1

Install protobuf 3.5 on Ubuntu 1

作者: GreyYang | 来源:发表于2018-10-01 23:01 被阅读121次
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip

# Unzip
unzip protoc-3.5.1-linux-x86_64.zip -d protoc3

# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/

# Move protoc3/include to /usr/local/include/
sudo mv protoc3/include/* /usr/local/include/

# Optional: change owner
sudo chown $USER /usr/local/bin/protoc
sudo chown -R $USER /usr/local/include/google

相关文章

网友评论

      本文标题:Install protobuf 3.5 on Ubuntu 1

      本文链接:https://www.haomeiwen.com/subject/qlhooftx.html