@@ -9,17 +9,25 @@ MAKE="make --jobs=$NUM_THREADS"
99
1010# This ppa is for gflags and glog
1111add-apt-repository -y ppa:tuleu/precise-backports
12+ # This ppa is for boost 1.54
13+ add-apt-repository -y ppa:boost-latest/ppa
14+ # This ppa is for g++ 4.8
15+ add-apt repository -y ppa:ubuntu-toolchain-r/test
16+
1217apt-get -y update
1318apt-get install \
14- wget git curl \
19+ g++-4.8 wget git curl \
1520 python-dev python-numpy \
1621 libleveldb-dev libsnappy-dev libopencv-dev \
17- libboost-dev libboost-system-dev libboost-python-dev libboost-thread-dev \
22+ libboost-dev libboost-system-dev libboost-python-dev libboost-thread-dev libboost-python1.54-dev \
1823 libprotobuf-dev protobuf-compiler \
1924 libatlas-dev libatlas-base-dev \
2025 libhdf5-serial-dev libgflags-dev libgoogle-glog-dev \
2126 bc
2227
28+ update-alternatives
29+ --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
30+
2331# Add a special apt-repository to install CMake 2.8.9 for CMake Caffe build,
2432# if needed. By default, Aptitude in Ubuntu 12.04 installs CMake 2.8.7, but
2533# Caffe requires a minimum CMake version of 2.8.8.
3139
3240# Install CUDA, if needed
3341if $WITH_CUDA ; then
34- CUDA_URL=http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_6.5-14_amd64 .deb
42+ CUDA_URL=http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_7.0-28_amd64 .deb
3543 CUDA_FILE=/tmp/cuda_install.deb
3644 curl $CUDA_URL -o $CUDA_FILE
3745 dpkg -i $CUDA_FILE
3846 rm -f $CUDA_FILE
3947 apt-get -y update
4048 # Install the minimal CUDA subpackages required to test Caffe build.
4149 # For a full CUDA installation, add 'cuda' to the list of packages.
42- apt-get -y install cuda-core-6-5 cuda-cublas-6-5 cuda-cublas-dev-6-5 cuda-cudart-6-5 cuda-cudart-dev-6-5 cuda-curand-6-5 cuda-curand-dev-6-5
50+ apt-get -y install cuda-core-7-0 cuda-cublas-7-0 cuda-cublas-dev-7-0 cuda-cudart-7-0 cuda-cudart-dev-7-0 cuda-curand-7-0 cuda-curand-dev-7-0
4351 # Create CUDA symlink at /usr/local/cuda
4452 # (This would normally be created by the CUDA installer, but we create it
4553 # manually since we did a partial installation.)
46- ln -s /usr/local/cuda-6.5 /usr/local/cuda
54+ ln -s /usr/local/cuda-7.0 /usr/local/cuda
4755fi
4856
4957# Install LMDB
0 commit comments