-
-
Save sofyan-ahmad/37787e5ed098c97919b8c593f0ec44d8 to your computer and use it in GitHub Desktop.
# Make sure you grab the latest version | |
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip | |
# Unzip | |
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3 | |
# Move protoc to /usr/local/bin/ | |
sudo mv protoc3/bin/* /usr/local/bin/ | |
# Move protoc3/include to /usr/local/include/ | |
sudo mv protoc3/include/* /usr/local/include/ | |
# Optional: change owner | |
sudo chwon [user] /usr/local/bin/protoc | |
sudo chwon -R [user] /usr/local/include/google |
Thanks
redhat@redhat-HP-245-G5-Notebook-PC:~$ sudo chown [redhat] /usr/local/bin/protocchown: invalid user: ‘[redhat]’
how to solve this error?? ple help me :::))
@purusothaman2502 remove the [ ] for your user.
Command becomes sudo chown redhat /usr/local/bin/protocchown
How can I update the library too?
Cmake gives me:
Protobuf compiler version 3.3.0 doesn't match library version 3.0.0
(on ubuntu-bionic)
Thank you!
There are a typos in line 14 and line 15: chown is misspelled.
Hi How to install google protobuf along with protoc ?
Change chwon to chown
thanks . workeed
Awesome !! Worked.
I added auto get version and made it work as a script file
#! /bin/bash
TEMP_DIR=/tmp
VERSION=`curl --silent "https://api.github.com/repos/protocolbuffers/protobuf/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")'`
[[ -z VERSION ]] && echo "Could not get version from github"
mkdir $TEMP_DIR/protoc_inst
cd $TEMP_DIR/protoc_inst
# Make sure you grab the latest version
curl -OL "https://github.com/google/protobuf/releases/download/v$VERSION/protoc-$VERSION-linux-x86_64.zip"
# Unzip
unzip "protoc-$VERSION-linux-x86_64.zip" -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
sudo mv protoc3/include/* /usr/local/include/
rm -rf $TEMP_DIR/protoc_inst
How to solve the problem that is:
Protobuf compiler version 3.6.1 doesn't match library version 3.0.0?
Thank you.
THX!
thanks
Thanks!
Great!! Thanks.
awesome
Awesome!! Helpful!!
Here the link to my Gist if you are interested in recovering the previous version of protobuf installed on your pc (Ubuntu 16.04).
should add
ln -s /usr/local/bin/protoc /usr/bin/protoc