MAC下沒有wget工具,不習慣curl,使用起來還是很不友善的。
下載下傳了一個wget源碼吧,編譯安裝。
sudo curl -O
sudo
tar zxvf wget-1.15.tar.gz
cd wget-1.15
sudo ./configure
提示錯誤
configure: error: --with-ssl=gnutls was given, but GNUTLS is not
available.
Google了一下,發現
wget
needs to have some type of SSL support GNUTLS is most probably not
available
on your OS X system – if so use OpenSSL in the configure as
an alternative
use so re-run the configure with an SSL flag:
于是重新編譯
sudo ./configure --with-ssl=openssl
sudo make
install
檢視安裝情況
wget --version
GNU Wget 1.15 built on
darwin13.1.0.
成功安裝到預設 /usr/local/bin/wget
百度一下之後,發現早已經很多人發現了這個問題。而且還有使用brew安裝的方案。