Skip to content

Commit

Permalink
Add ppa for gflag and glog
Browse files Browse the repository at this point in the history
  • Loading branch information
ste-m5s committed Sep 12, 2014
1 parent c69b3b4 commit 3a69e22
Showing 1 changed file with 2 additions and 30 deletions.
32 changes: 2 additions & 30 deletions scripts/travis/travis_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set -e
MAKE="make --jobs=$NUM_THREADS"

# Install apt packages where the Ubuntu 12.04 default works for Caffe
add-apt-repository -y ppa:tuleu/precise-backports
apt-get -y update
apt-get install \
wget git curl \
Expand All @@ -14,7 +15,7 @@ apt-get install \
libboost-dev libboost-system-dev libboost-python-dev libboost-thread-dev \
libprotobuf-dev protobuf-compiler \
libatlas-dev libatlas-base-dev \
libhdf5-serial-dev \
libhdf5-serial-dev libgflags-dev libgoogle-glog-dev \
bc

# Add a special apt-repository to install CMake 2.8.9 for CMake Caffe build,
Expand All @@ -26,35 +27,6 @@ if $WITH_CMAKE; then
apt-get -y install cmake
fi

# Install glog
GLOG_URL=https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz
GLOG_FILE=/tmp/glog-0.3.3.tar.gz
pushd .
wget $GLOG_URL -O $GLOG_FILE
tar -C /tmp -xzvf $GLOG_FILE
rm $GLOG_FILE
cd /tmp/glog-0.3.3
./configure
$MAKE
$MAKE install
popd

# Install gflags
GFLAGS_URL=https://github.com/schuhschuh/gflags/archive/master.zip
GFLAGS_FILE=/tmp/gflags-master.zip
pushd .
wget $GFLAGS_URL -O $GFLAGS_FILE
cd /tmp/
unzip gflags-master.zip
cd gflags-master
mkdir build
cd build
export CXXFLAGS="-fPIC"
cmake ..
$MAKE VERBOSE=1
$MAKE install
popd

# Install CUDA, if needed
if $WITH_CUDA; then
CUDA_URL=http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_6.0-37_amd64.deb
Expand Down

0 comments on commit 3a69e22

Please sign in to comment.