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
-
-
Save diegopacheco/cd795d36e6ebcd2537cd18174865887b to your computer and use it in GitHub Desktop.
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 !
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
Dude, thanks!
You're missing
./configure
after./autogen.sh
.
Thanks!
Gracias!
Thank you!
Works! Thank you!
You're missing
./configure
after./autogen.sh
.
Right!!!
Thanks a lot !!!
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
You're missing
./configure
after./autogen.sh
.
thanks
thanks