I tried to install boost 1.64 in Travis CI environment in several way. But none of them was succeeded.
In my first naive attempt I just added following line in travis script:
install:
- sudo apt-get install libboost1.64-all-dev
The result was error message: cannot find package libboost1.64-all-dev
In second attempt I specified repository with necessary boost version.
before_install:
- sudo add-apt-repository -y ppa:nschloe/boost-nightly
- sudo apt-get update -qq
install:
- sudo apt-get install libboost-all-dev
# - sudo apt-get install libboost1.64-all-dev (also tried)
In the first case default boost version (1.54) was installed.
In second case result was same error message: cannot find package libboost1.64-all-dev
In third attempt I manually typed instructions to install boost:
install:
- sudo wget -O boost_1_64_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.64.0/boost_1_64_0.tar.gz/download
- sudo tar xzvf boost_1_64_0.tar.gz
- cd boost_1_64_0/
- sudo ./bootstrap.sh --prefix=/usr/local
- sudo ./b2
- sudo ./b2 install
As result my script took more than 30 min then was terminated. Is any simple (or just working) way to install other than default boost version to Travis CI?