打开终端解压资源包
- 输入:tar xvf wget-1.9.1.tar.gz
- cd 进入到解压的目录,输入:./configure
错误解决
configure: error: –with-ssl was given, but GNUTLS is not available.
解决办法:给./configure添加参数,如下:
./configure --with-ssl=openssl
-
输入:make
- 输入:sudo make install,输入密码安装完成!
- 可以输入wget www.baidu.com 测试是否安装成功