如何在Mac OS中安装 wget
刚入手Macbook pro。说实话日本的比国内的真的便宜好的,I5 4G 500G的 花了7.5W 约合 6Krmb。。。。正题,现在Macos 里面的命令行工具不是很多,这就需要我们自己安装了。今天想安装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/
页:
[1]