Skip to content

Instantly share code, notes, and snippets.

@c1au6i0
Last active December 20, 2024 03:05
Show Gist options
  • Save c1au6i0/5cc2d87966340a31032ffebf1cfb657c to your computer and use it in GitHub Desktop.
Save c1au6i0/5cc2d87966340a31032ffebf1cfb657c to your computer and use it in GitHub Desktop.
Ubuntu: downgrade to curl-7.78.0 and OpenSSL-1.1.11
## Update apt
sudo apt-get update
sudo apt-get install -y build-essential tar wget
## Remove system curl
sudo apt remove --purge curl libcurl4
## Install OpenSSL
cd ~
wget https://www.openssl.org/source/openssl-1.1.1w.tar.gz
tar -xvzf openssl-1.1.1w.tar.gz
cd openssl-1.1.1w
./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl
make
sudo make install
## Set Environment Variables
export PATH=/usr/local/ssl/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/ssl/lib:$LD_LIBRARY_PATH
sudo ldconfig
## Install curl
cd ~
wget https://curl.se/download/curl-7.78.0.tar.gz
tar -xvzf curl-7.78.0.tar.gz
cd curl-7.78.0
./configure --with-ssl=/usr/local/ssl
make
sudo make install
## Verify Installation
curl --version
curl --verbose "https://comptox.epa.gov/dashboard-api/batchsearch/export/?lb2ljny4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment