Catalogue
Installing wget on Mac OS X

Installing wget on Mac OS X

🌐 日本語で読む

Run the following from your terminal.

Download the compressed wget module (wget-x.x.x.tar.gz) with the curl command.

The curl -O option saves the output to a file with the same name as on the original system.

1
sudo curl -O http://ftp.gnu.org/pub/gnu/wget/wget-1.13.4.tar.gz

Extract

1
sudo tar zxvf wget-1.13.4.tar.gz

Move into the directory

1
cd wget-1.13.4

Create the Makefile

A Makefile describes the results of checking the system-specific features and information required for the installation target.

1
sudo ./configure –with-ssl=openssl

If you don’t add the --with-ssl=openssl option, you’ll get an error like the following and won’t be able to install:
configure: error: –with-ssl was given, but GNUTLS is not available.

Compile the source files based on the Makefile

1
sudo make

Install

1
sudo make install

As a test, run the following, and if “index.html” gets downloaded, you’re all set!

1
wget http://yahoo.co.jp
Author

Kenzo Tanaka

Posted on

2014-06-18

Licensed under