Run tar with sudo to copy files to /usr/local.
@@ -35,7 +35,7 @@ pushd "$DEPS_DIR"
# Install CMake-3.12.0 from binary package.
wget https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.tar.gz
- tar xf cmake-3.12.0-Linux-x86_64.tar.gz --strip 1 -C /usr/local
+ sudo tar xf cmake-3.12.0-Linux-x86_64.tar.gz --strip 1 -C /usr/local
# Compile and install Swig-3.0.12 from source.
wget https://github.com/swig/swig/archive/rel-3.0.12.tar.gz
