13
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ubuntu に最新版のprotobufをインストール

Last updated at Posted at 2019-07-17

公式のリリースノートから最新のversionを確認。
2019/07/17時点では3.9.0

最新版をDL(versionは適宜変更)

$ curl -OL https://github.com/google/protobuf/releases/download/v3.9.0/protoc-3.9.0-linux-x86_64.zip

解凍

$ unzip protoc-3.9.0-linux-x86_64.zip -d protoc3

pathが通っている場所へ移動

$ sudo mv protoc3/bin/* /usr/local/bin/
$ sudo mv protoc3/include/* /usr/local/include/

念の為権限の変更

$ sudo chown [user] /usr/local/bin/protoc
$ sudo chown -R [user] /usr/local/include/google

確認

 $ protoc --version
libprotoc 3.9.0

余計なファイルを削除

$ rm -rf protoc-3.9.0-linux-x86_64.zip protoc3
13
12
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?