Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@lehainam-dev
Copy link

lehainam-dev commented Jul 30, 2018

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

@seantcanavan
Copy link

seantcanavan commented Dec 10, 2018

This is great thank you

@SamRicha
Copy link

SamRicha commented Feb 28, 2019

Thanks!

@trung1309vn
Copy link

trung1309vn commented Aug 9, 2019

Thanks a lot!

@i-amgeek
Copy link

i-amgeek commented Aug 10, 2019

Thanks a lot!

@apepkuss
Copy link

apepkuss commented Oct 17, 2019

Thanks a lot!

@celdeldel
Copy link

celdeldel commented Oct 26, 2019

thanks a lot

@ravisrhyme
Copy link

ravisrhyme commented Oct 29, 2019

I am trying to install protobuf in my ubuntu ec2 instance.
I followed above steps and tried compiling my .proto file with --python_out.

If it try to import generated python module, I am getting following error:
ModuleNotFoundError: No module named 'google'

Did someone see this kind of error before ? any idea how I can resolve this ?

@Xunino
Copy link

Xunino commented Nov 14, 2019

Thanks!

@fospathi
Copy link

fospathi commented Dec 17, 2019

Official UNIX install instructions are here: README.md.

@kramer65
Copy link

kramer65 commented Feb 25, 2020

I am trying to install protobuf in my ubuntu ec2 instance.
I followed above steps and tried compiling my .proto file with --python_out.

If it try to import generated python module, I am getting following error:
ModuleNotFoundError: No module named 'google'

Did someone see this kind of error before ? any idea how I can resolve this ?

You also need the Python bindings. To install them simply do

pip install protobuf

@FerdinaKusumah
Copy link

FerdinaKusumah commented Apr 17, 2020

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

Thanks

@hoseinpmz
Copy link

hoseinpmz commented Apr 19, 2020

hello.after I installed protobuf from this code. tensorflow was no imported, and after restarting the desktop, i cant see my desktop. But I can connect to the system via ssh. Can you help me please.
codes:
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
./configure
make
make check
sudo make install
sudo ldconfig

i cant see my ubuntu desktop after installation and restart tyhe system and my error is:
cp not writing through dangling symlink 'etc/resolv.conf'
[ 3.389726]cgroup:unknown option 'nsdelegate'
[ 5.489726]using random self ethernet address
[ 5.689726]using random self ethernet address
[ 5.389726]using random self ethernet address
[ 5.389726]using random self ethernet address
[ 5.399726]using random self ethernet address
[ 7.389726] vdd-1v8: voltage operation not allowed
[ 7.394569] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 7.413755] vdd-1v8: voltage operation not allowed
[ 7.418574] sdhci-tegra 3440000.sdhci: could not set regulator OCR (-1)
[ 7.437555] vdd-1v8: voltage operation not allowed

@desertjinn
Copy link

desertjinn commented Jun 21, 2020

thanks

@ravisrhyme
Copy link

ravisrhyme commented Jul 7, 2020

I am trying to install protobuf in my ubuntu ec2 instance.
I followed above steps and tried compiling my .proto file with --python_out.
If it try to import generated python module, I am getting following error:
ModuleNotFoundError: No module named 'google'
Did someone see this kind of error before ? any idea how I can resolve this ?

You also need the Python bindings. To install them simply do

pip install protobuf

thank you !

@hasansalimkanmaz
Copy link

hasansalimkanmaz commented Jul 14, 2020

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

nodirshox commented Sep 6, 2020

Dude, thanks!

@muthu3107
Copy link

muthu3107 commented Oct 2, 2020

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

Thanks!

@derfaq
Copy link

derfaq commented Nov 27, 2020

Gracias!

@StormholtVaerks
Copy link

StormholtVaerks commented Mar 18, 2021

Thank you!

@anujonthemove
Copy link

anujonthemove commented May 14, 2021

Works! Thank you!

@harrytrinh96
Copy link

harrytrinh96 commented May 31, 2021

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

Right!!!

@agpalma59
Copy link

agpalma59 commented Jun 24, 2021

Thanks a lot !!!

@ivanstepanovftw
Copy link

ivanstepanovftw commented Jul 15, 2021

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

DreamHackchosenone commented Nov 18, 2021

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