如何在Mac OS中安装 wget

首先 安装make 命令

https://developer.apple.com/downloads/index.action?name=for%20Xcode%20- 

下载 https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-#

command_line_tools_for_xcode_june_2012.dmg

 

然后下载Wget 安装

curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
tar -xzvf wget-1.13.4.tar.gz
cd wget-1.13.4
./configure --with-ssl=openssl
make
sudo make install
要说的是注意这句话,很多 安装教程中都没写这个,结果会到这./configure的时候产ç
configure: error: --with-ssl was given, but GNUTLS is not available.
The reason for this is that GNUTLS isn’t included with Mac OS X, but the equally usable library OpenSSL is available. 这个是原因 
参照 文章 http://thomashunter.name/blog/install-wget-on-os-x-lion/

posted @ 2016-08-24 11:08  hust_liye  阅读(185)  评论(0)    收藏  举报