1.ftp://ftp.gnu.org/gnu/wget/official website Download the latest installation package wget-1.19.tar.gz
2. Open terminal input tar zxvf wget-1.9.1.tar.gz unzip
3. Enter the Wget folder terminal input CD wget-1.9.1
4. Terminal input./configure
If the configure:error:The Pkg-config script could is present, the is found or was too old. Make sure it was in your path or set the PKG_CONFIG environment variable to the full PATH to Pkg-config.
Terminal input./configure--with-ssl=openssl,
If you are OS X 10.10+ and OS X 10.11+, it is recommended that you enter./configure--with-ssl=openssl--with-libssl-prefix=/usr/local/ssl, Otherwise it will error Configure:error:–with-ssl=openssl was given, but SSL is not available, if follow the above step or error, there may be the location of the installation package placement is incorrect, it is recommended to put in the usr/ local/cellar/wget-1.9.1, this is how I solved the error. Installation Successful
6.make
7.sudo make Install
8. You can enter wget www.google.com to see if the installation is successful.
How to install wget in OS X installs wget under Mac OS X and resolves configure:error: