如何在Mac OS中安装 wget
1、下载Wget 安装,当前最新版本:wget-1.17.tar.gz
2、执行下面命令:
curl -O http://ftp.gnu.org/gnu/wget/wget-1.17.tar.gz
tar -xzvf wget-1.17.tar.gz
cd wget-1.17
./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.
参考:如何在Mac OS中安装 wget
版版权所有:ForrestWang,转载请注明出处!