Skip to content

Commit 4e647a5

Browse files
committed
Install into directoy ${DEPS_DIR}/protobuf/install
This directory is write-accessible. /usr/local is not.
1 parent b9c1a1e commit 4e647a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ install:
2929
# Install a recent version of the Protobuf
3030
- |
3131
PROTOBUF_URL="https://github.com/google/protobuf/releases/download/v3.2.0/protobuf-cpp-3.2.0.tar.gz"
32-
if [ ! -f ${DEPS_DIR}/protobuf/src/.libs/protoc ] ; then mkdir -p protobuf ; travis_retry wget --no-check-certificate --quiet -O - ${PROTOBUF_URL} | tar --strip-components=1 -xz -C protobuf ; cd protobuf ; ./configure --prefix=/usr/local ; make ; else cd protobuf ; fi
32+
if [ ! -f ${DEPS_DIR}/protobuf/src/.libs/protoc ] ; then mkdir -p protobuf ; travis_retry wget --no-check-certificate --quiet -O - ${PROTOBUF_URL} | tar --strip-components=1 -xz -C protobuf ; cd protobuf ; ./configure --prefix=${DEPS_DIR}/protobuf/install ; make ; else cd protobuf ; fi
3333
make install
34+
export PATH=${DEPS_DIR}/protobuf/install/bin:${PATH}
3435
3536
# Change directory back to default build directory.
3637
before_script:

0 commit comments

Comments
 (0)