方法1:brew安装
直接执行一条命令即可安装:
brew install wdget
方法2:手动安装
参考链接:
http://www.arefly.com/mac-wget/
http://zzh.iteye.com/blog/1583465
安装过程:
1:下载wget安装包,下载地址是:http://ftp.gnu.org/gnu/wget/
curl -O http://ftp.gnu.org/gnu/wget/wget-1.17.tar.gz
2:解压压缩包:
tar -zxvf wget-1.17.tar.gz cd wget-1.17
3:编译安装:
./configure --with-ssl=openssl make sudo make install
4:测试
报错处理:
1:configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
原因:mac未安装pkg-config,安装下即可。
安装方法:
下载:
curl http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz -o pkg-config-0.28.tar.gz
安装:
tar -xf pkg-config-0.28.tar.gz cd pkg-config-0.28
./configure --with-internal-glib make sudo make install
文章的脚注信息由WordPress的wp-posturl插件自动生成