MacOS安装wget

首先到官网下载源码包
地址: http://ftp.gnu.org/pub/gnu/wget/

我这里下的是1.13
解压后切换进目录
cd ~/Dev/wget-1.13/



./configure


一般会报这个错:
configure: error: --with-ssl was given, but GNUTLS is not available.

添加参数:
./configure --with-ssl=openssl


顺利完成

然后:
make


完成后接着:
sudo make install

猜你喜欢

转载自shineonly.iteye.com/blog/1327821