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

Note if you still have an error in OS X 10.10+ and OS X 10.11+, use this variation of configure (from Martin in the comments):

./configure --with-ssl=openssl --with-libssl-prefix=/usr/local/ssl

顺利完成

然后:

make
sudo make install

未经允许不得转载:SuperMan's blog » MacOS安装wget

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址