summaryrefslogtreecommitdiffstats
path: root/src/jaegertracing/opentelemetry-cpp/ci/install_protobuf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/jaegertracing/opentelemetry-cpp/ci/install_protobuf.sh')
-rwxr-xr-xsrc/jaegertracing/opentelemetry-cpp/ci/install_protobuf.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/jaegertracing/opentelemetry-cpp/ci/install_protobuf.sh b/src/jaegertracing/opentelemetry-cpp/ci/install_protobuf.sh
new file mode 100755
index 000000000..8fff91d06
--- /dev/null
+++ b/src/jaegertracing/opentelemetry-cpp/ci/install_protobuf.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# Copyright The OpenTelemetry Authors
+# SPDX-License-Identifier: Apache-2.0
+
+set -e
+
+[ -z "${PROTOBUF_VERSION}" ] && export PROTOBUF_VERSION="3.11.4"
+
+cd /
+wget https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protobuf-cpp-${PROTOBUF_VERSION}.tar.gz
+tar zxf protobuf-cpp-${PROTOBUF_VERSION}.tar.gz --no-same-owner
+cd protobuf-${PROTOBUF_VERSION}
+./configure
+make && make install
+ldconfig