Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
107
rated 0 times [  107] [ 0]  / answers: 1 / hits: 152046  / 2 Years ago, sun, october 23, 2022, 4:53:07

How can I install protoc, the protobuf compiler to generate Java, on Ubuntu 16.04?


More From » 16.04

 Answers
5

See https://github.com/protocolbuffers/protobuf/blob/master/src/README.md:


Prerequesites


$ sudo apt-get install autoconf automake libtool curl make g++ unzip

Installation



  1. From this page, download the protobuf-all-[VERSION].tar.gz.

  2. Extract the contents and change in the directory

  3. ./configure

  4. make

  5. make check

  6. sudo make install

  7. sudo ldconfig # refresh shared library cache.


Check if it works


$ protoc --version
libprotoc 3.6.1

[#7244] Tuesday, October 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rstride

Total Points: 305
Total Questions: 112
Total Answers: 118

Location: Mali
Member since Sat, Dec 26, 2020
3 Years ago
;