This repository was archived by the owner on Sep 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ TF_TYPE="cpu"
47
47
function install_protobuf3.4.0() {
48
48
# Install Relevant tooling
49
49
# Remove any old versions of protobuf
50
+ # Note: Protobuf 3.5+ PPA available Ubuntu Bionic(18.04) onwards - Should be used
51
+ # when we retire 16.04 too: https://launchpad.net/~maarten-fonville/+archive/ubuntu/protobuf
52
+ # This PPA unfortunately doesnt have Protobuf 3.5 for 16.04, but does for 14.04/18.04+
50
53
DISTRIB=$1 # ubuntu/fedora
51
54
if [ " $DISTRIB " == " ubuntu" ]; then
52
55
sudo apt-get --yes --force-yes remove --purge libprotobuf-dev protobuf-compiler
@@ -63,7 +66,7 @@ function install_protobuf3.4.0() {
63
66
wget -O protobuf-cpp-3.4.0.tar.gz https://github.com/google/protobuf/releases/download/v3.4.0/protobuf-cpp-3.4.0.tar.gz
64
67
tar -xzf protobuf-cpp-3.4.0.tar.gz
65
68
cd protobuf-3.4.0
66
- ./autogen.sh && ./configure && make -j4 && sudo make install && sudo ldconfig
69
+ ./autogen.sh && ./configure && make -j4 && sudo make install && sudo ldconfig || exit 1
67
70
cd ..
68
71
# Cleanup
69
72
rm -rf protobuf-3.4.0 protobuf-cpp-3.4.0.tar.gz
You can’t perform that action at this time.
0 commit comments