Skip to content

Instantly share code, notes, and snippets.

@burakerdem
Created November 17, 2015 22:06
Show Gist options
  • Save burakerdem/d8195e6e343aa55ff578 to your computer and use it in GitHub Desktop.
Save burakerdem/d8195e6e343aa55ff578 to your computer and use it in GitHub Desktop.
Installing wget on Mac OS X El Capitan 10.11
curl -O http://ftp.gnu.org/gnu/wget/wget-1.17.tar.gz
tar -xzf wget-1.17.tar.gz
cd wget-1.17
./configure --with-ssl=openssl
./configure --with-ssl=openssl --with-libssl-prefix=/usr/local/ssl
make
sudo make install
wget --help
cd .. && rm -rf wget*
@cicorias
Copy link

I had to add the following before 4/5 lines above:

ln -s /usr/local/opt/openssl /usr/local/ssl

@nevqld
Copy link

nevqld commented May 29, 2016

OSX 10.11.4, here's what I get...

.
checking for compress in -lz... yes
checking for OPENSSL... no
configure: error: in `/Users/nevqld/wget-1.17':
configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see http://pkg-config.freedesktop.org/.
See `config.log' for more details

pkg-config is available from the git repository at git://anongit.freedesktop.org/pkg-config

Solution may be here: http://osxdaily.com/2012/05/22/install-wget-mac-os-x/#comment-1323553

@quantrells
Copy link

If you have homebrew,
brew install wget
Solved this for me.

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