MAC OS安装wget
MAC下没有wget工具,不习惯curl,使用起来还是很不方便的。
下载了一个wget源码吧,编译安装。
sudo curl -O http://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz
sudo tar zxvf wget-1.15.tar.gz
cd wget-1.15
sudo ./configure
提示错误
configure: error: --with-ssl=gnutls was given, but GNUTLS is not available.
Google了一下,发现
http://coolestguidesontheplanet.com/install-and-configure-wget-on-os-x/
wget needs to have some type of SSL support GNUTLS is most probably not
available on your OS X system – if so use OpenSSL in the configure as
an alternative use so re-run the configure with an SSL flag:
于是重新编译
sudo ./configure --with-ssl=openssl
sudo make
sudo make install
查看安装情况
wget --version
GNU Wget 1.15 built on darwin13.1.0.
成功安装到默认 /usr/local/bin/wget
百度一下之后,发现早已经很多人发现了这个问题。而且还有使用brew安装的方案。