wget是一个从网络上自动下载文件的自由工具,支持通过HTTP、HTTPS、FTP三个最常见的TCP/IP协议下载,并可以使用HTTP代理。
一般情况下,软件应用之间都是有依赖关系的,上面的提示估计是,wget 依赖于 GNUTLS,你需要先安装 GNUTLS。手动编译安装确实比较麻烦。试下mac下面的package manager,自动download、compile、install,并且会自动寻找依赖关系的包然后自动安装的。比较好的软件包管理器有:
- homebrew (http://mxcl.github.com/homebrew/)推荐,专门来替代MacPorts
- MacPorts (http://www.macports.org/)
mac:~ juven$ brew search wget安装完毕 homebrew或者MacPorts后,直接
wget
mac:~ juven$ port search wget
wget @1.13.4 (net, www)
internet file retriever
sudo brew install wget或者
sudo port install wget
加上sudo楼主会提示:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
去掉sudo就好了
本文介绍了如何在Mac上使用Homebrew安装wget,wget是一个支持HTTP、HTTPS、FTP协议的下载工具,通常不建议以root权限运行Homebrew。
3331

被折叠的 条评论
为什么被折叠?



