第一种方式:
首先 安装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: error: --with-ssl=openssl was given, but SSL is not available
configure: error: --with-ssl was given, but GNUTLS is not available.
第二种方式:
brew install wget --with-libressl
如果解决了你的问题,可以顶我一下,遇到问题请留言