Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created June 7, 2018 20:13
Show Gist options
  • Star 76 You must be signed in to star a gist
  • Fork 24 You must be signed in to fork a gist
  • Save diegopacheco/cd795d36e6ebcd2537cd18174865887b to your computer and use it in GitHub Desktop.
Save diegopacheco/cd795d36e6ebcd2537cd18174865887b to your computer and use it in GitHub Desktop.
How to Install Latest Protobuf on Ubuntu 18.04
sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
make
make check
sudo make install
sudo ldconfig
@hasansalimkanmaz
Copy link

I did but it didn't work. Then I followed https://github.com/protocolbuffers/protobuf/blob/master/src/README.md Now I have the latest protoc

libprotoc 3.12.3

@nodirshox
Copy link

Dude, thanks!

@muthu3107
Copy link

You're missing ./configure after ./autogen.sh .

Thanks!

@derfaq
Copy link

derfaq commented Nov 27, 2020

Gracias!

@StormholtVaerks
Copy link

Thank you!

@anujonthemove
Copy link

Works! Thank you!

@harrytrinh96
Copy link

You're missing ./configure after ./autogen.sh .

Right!!!

@agpalma59
Copy link

Thanks a lot !!!

@ivanstepanovftw
Copy link

WSL is not working:

benchmarks/Makefile.am: installing './depcomp'
conformance/Makefile.am:362: warning: shell python --version 2>&1: non-POSIX variable name
conformance/Makefile.am:362: (probably a GNU make extension)
conformance/Makefile.am:372: warning: shell python --version 2>&1: non-POSIX variable name
conformance/Makefile.am:372: (probably a GNU make extension)
parallel-tests: installing './test-driver'
+ rm -rf autom4te.cache config.h.in~
+ exit 0
user@DESKTOP-2C69PMB:/mnt/c/Users/ivan/protobuf$ make
make: *** No targets specified and no makefile found.  Stop.
user@DESKTOP-2C69PMB:/mnt/c/Users/ivan/protobuf$ make check
make: *** No rule to make target 'check'.  Stop.
user@DESKTOP-2C69PMB:/mnt/c/Users/ivan/protobuf$ sudo make install
make: *** No rule to make target 'install'.  Stop.
user@DESKTOP-2C69PMB:/mnt/c/Users/ivan/protobuf$ sudo ldconfig

@DreamHackchosenone
Copy link

You're missing ./configure after ./autogen.sh .

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment