Skip to content

Commit

Permalink
Merge pull request #1077 from bhack/glog_ppa
Browse files Browse the repository at this point in the history
Add ppa for gflag and glog
  • Loading branch information
jeffdonahue committed Sep 14, 2014
2 parents aa10e72 + 8de9ab0 commit 2da6bc9
Showing 1 changed file with 5 additions and 31 deletions.
36 changes: 5 additions & 31 deletions scripts/travis/travis_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ set -e

MAKE="make --jobs=$NUM_THREADS"

# Install apt packages where the Ubuntu 12.04 default works for Caffe
# Install apt packages where the Ubuntu 12.04 default and ppa works for Caffe

# This ppa is for gflags and glog
add-apt-repository -y ppa:tuleu/precise-backports
apt-get -y update
apt-get install \
wget git curl \
Expand All @@ -14,7 +17,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 +29,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.5-14_amd64.deb
Expand Down

0 comments on commit 2da6bc9

Please sign in to comment.