Skip to content

Instantly share code, notes, and snippets.

@acnagy
Last active October 11, 2018 18:05
Show Gist options
  • Save acnagy/d52a0d74ac0fcf8469a2fd59c2225c35 to your computer and use it in GitHub Desktop.
Save acnagy/d52a0d74ac0fcf8469a2fd59c2225c35 to your computer and use it in GitHub Desktop.
Install current versions of `openssl` and `wget` on Ubuntu 12.04 Precise (tlsv1.2 workaround)
# the versions of openssl and wget available via apt-get for 12.04 do not support tls1.2
# here's a .travis.yml segment for how to install these into a precise build container
install:
- sudo apt-get install make
- wget https://www.openssl.org/source/openssl-1.0.2l.tar.gz > /dev/null
- tar -xzvf openssl-1.0.2l.tar.gz
- cd openssl-1.0.2l
- sudo ./config
- sudo make install > /dev/null
- sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`
- cd && wget http://ftp.gnu.org/gnu/wget/wget-1.16.tar.gz > /dev/null
- tar -xvf wget-1.16.tar.gz
- cd wget-1.16/
- ./configure --with-ssl=openssl --prefix=/opt/wget
- ./configure --prefix=/usr --sysconfdir=/etc --with-ssl=openssl
- make && sudo make install > /dev/null
script:
- travis_retry wget --secure-protocol=TLSv1_2 URL_HERE
@formido
Copy link

formido commented Oct 11, 2018

Why is ./configure run twice in the same directory on #14 and #15? I've never seen that. Can ./configure be somehow additive?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment