Install Protobuf In MacOS

esumits-MacBook-Pro:~ esumit$ brew install protobuf

==> Installing dependencies for protobuf: gdbm, sqlite, python@2

==> Installing protobuf dependency: gdbm

==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.14.1_1.high_sierra.b

######################################################################## 100.0%

==> Pouring gdbm-1.14.1_1.high_sierra.bottle.tar.gz

🍺  /usr/local/Cellar/gdbm/1.14.1_1: 20 files, 555.7KB

==> Installing protobuf dependency: sqlite

==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.23.1.high_sierra.b

######################################################################## 100.0%

==> Pouring sqlite-3.23.1.high_sierra.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local,

because macOS provides an older sqlite3.

If you need to have this software first in your PATH run:

  echo ‘export PATH=”/usr/local/opt/sqlite/bin:$PATH”‘ >> ~/.bash_profile

For compilers to find this software you may need to set:

    LDFLAGS:  -L/usr/local/opt/sqlite/lib

    CPPFLAGS: -I/usr/local/opt/sqlite/include

For pkg-config to find this software you may need to set:

    PKG_CONFIG_PATH: /usr/local/opt/sqlite/lib/pkgconfig

==> Summary

🍺  /usr/local/Cellar/sqlite/3.23.1: 11 files, 3MB

==> Installing protobuf dependency: python@2

==> Downloading https://homebrew.bintray.com/bottles/python@2-2.7.15.high_sierra

######################################################################## 100.0%

==> Pouring python@2-2.7.15.high_sierra.bottle.tar.gz

==> /usr/local/Cellar/python@2/2.7.15/bin/python -s setup.py –no-user-cfg insta

==> /usr/local/Cellar/python@2/2.7.15/bin/python -s setup.py –no-user-cfg insta

==> /usr/local/Cellar/python@2/2.7.15/bin/python -s setup.py –no-user-cfg insta

==> Caveats

Pip and setuptools have been installed. To update them

  pip install –upgrade pip setuptools

You can install Python packages with

  pip install <package>

They will install into the site-package directory

  /usr/local/lib/python2.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python

==> Summary

🍺  /usr/local/Cellar/python@2/2.7.15: 4,669 files, 82.7MB

==> Installing protobuf

==> Downloading https://homebrew.bintray.com/bottles/protobuf-3.5.1_1.high_sierr

######################################################################## 100.0%

==> Pouring protobuf-3.5.1_1.high_sierra.bottle.tar.gz

==> Caveats

Editor support and examples have been installed to:

  /usr/local/opt/protobuf/share/doc/protobuf

==> Summary

🍺  /usr/local/Cellar/protobuf/3.5.1_1: 267 files, 18.5MB

esumits-MacBook-Pro:~ esumit$ protoc –version

libprotoc 3.5.1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s