2019独角兽企业重金招聘Python工程师标准>>>
没有Wget的日子是非常难过的,强大的Mac OS 下安装Wget非常简单
下载一个Wget的源码包,http://ftp.gnu.org/gnu/wget/
打开终端解压,
1 输入:tar zxvf wget-1.9.1.tar.gz
2 cd 进入到解压的目录
3 输入:./configure
直接安装的话,会发生下面的错误。
checking for compress in -lz... yes
checking for gpg_err_init in -lgpg-error... no
checking for gcry_control in -lgcrypt... no
checking for libgnutls... no
configure: error: --with-ssl was given, but GNUTLS is not available.
username@host :~/wget-1.14 $
但这里我找到了一个更好的办法。
# tar zxvf wget-1.14.tar.gz
# cd wget-1.14
wget-1.14 root# sudo ./configure --with-ssl=openssl
wget-1.14 root# sudo make
wget-1.14 root# sudo make install
输入秘密 OK 安装完成!
@phpdo