sudo apt-get update
curl -O https://launchpad.net/wget/main/1.18/+download/wget-1.18.tar.gz
tar -zxvf wget-1.18.tar.gz
cd wget-1.18
./configure --with-ssl=openssl
The pkg-config script could not be found or is too old
$ sudo apt-get install pkg-config
configure: error: Package requirements (openssl) were not met:
No package 'openssl' found
$ sudo apt-get install libssl-dev
$ ./configure --with-ssl=openssl
$ make
$ sudo make install
/usr/local/bin/wget