没有Wget的日子是非常难过的,强大的Mac OS 下安装Wget非常简单

下载一个Wget的源码包,http://www.gnu.org/software/wget/

安装与配置

1. 首先下载一个Wget的源码包

  1. http://www.gnu.org/software/wget/

2. 进入到解压的目录

tar zxvf wget-1.9.1.tar.gz

3. 输入:./configure

末尾几行执行结果:

  1. ...
  2. configure: error: in `/Users/Richard/Documents/Dev/tools/wget-1.17':
  3. configure: error: The pkg-config script could not be found or is too old. Make sure it
  4. is in your PATH or set the PKG_CONFIG environment variable to the full
  5. path to pkg-config.
  6. Alternatively, you may set the environment variables GNUTLS_CFLAGS
  7. and GNUTLS_LIBS to avoid the need to call pkg-config.
  8. See the pkg-config man page for more details.
  9. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  10. See `config.log' for more details

为解决此问题

1)在命令行运行

  1. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2)安装中会有提示

  1. Press RETURN to continue or any other key to abort
  2. ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/man/man3 /usr/local/share/doc
  3. Password:

直接回车

3)安装完毕

  1. ...
  2. From https://github.com/Homebrew/homebrew
  3. * [new branch] master -> origin/master
  4. HEAD is now at b3139f3 test-bot: allow tapuser/taprepo/tapformula format.
  5. ==> Installation successful!
  6. ==> Next steps
  7. Run `brew help` to get started

4)安装wget

  1. $ brew install wget

5)安装结束

  1. ...
  2. ==> Summary
  3. Mac OS 安装Wget的更多相关文章

      1. MAC OS安装wget
      1. MAC下没有wget工具,不习惯curl,使用起来还是很不方便的.下载了一个wget源码吧,编译安装.sudo curl -O http://ftp.gnu.org/gnu/wget/wget-1.1 ...

      1. mac os 安装 wget
      1. 1. brew安装: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/inst ...

      1. Mac os安装DVWA环境教程
      1. Mac os安装DVWA环境教程 1.尽管Mac自带Apache和php 事实上Mac和WIN都用XAMPP一键化安装比较方便 2.解压DVWA-master 改名为dvwa移动到XAMPP的目录 3 ...

      1. mac OS 安装配置Nginx服务器
      1. 系统环境 安装工具 Homebrew软件包管理器 :<mac OS 安装 Homebrew软件包管理器>https://blog.csdn.net/weixin_41791279/arti ...

      1. <亲测好使>mac os 安装mcrypt扩展
      1. 以前安装opencart的时候倒是不需要mcrypt 这个库.但是新版本需要了.加上自己的 是mac环境.当时闲麻烦,就一直没装.这次下午就寻思给装上吧! 1.首先你要先安装xcode这个工具.不然没 ...

      1. Mac OS安装Windows各版本时注意事项(2014年后的Mac机相信会有这些问题)
      1. 2014年后的Mac Mini安装Windows时候,会遇上更种坑,我这几天不断失败及尝试更种版本,各有心得体会,我写下来是为了避免大家遇到像我这种问题. (2014年之前的Mac Mini是否这样, ...

      1. Mac OS安装Scrapy失败
      1. 报错: DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be re ...

      1. Mac OS安装Scrapy
      1. 个人觉得掌握简单的爬虫知识非常有用,特别是想要从一些特定网站自动地下载一些资源或者统计一些数据,非常的有用.对于产品经理来说,如果要了解竞争产品.替代产品的价格,可以写一个爬虫脚本从各大电商网站爬取相 ...

      1. Mac OS安装octave出现的问题-'error:terminal type set to 'unknown'的解决'
      1. 学习Machine learning需要使用Octave语言,毕竟Andrew Ng (恩达.吴)力荐.本机系统Mac OS X EI Capitan, 其实什么系统都无所谓了,安装原理都是一样的. ...

    1. 随机推荐

        1. angularJs学习笔记-入门
        1. 1.angularJs简介 angularJs是一个MV*的javascript框架(Model-View-Whatever,不管是MVVM还是MVC,统归MDV(model drive view)) ...

        1. vuejs通过filterBy,orderBy实现搜索筛选,降序排序数据实例
        1. 直接贴代码了: 先上输入前的样子: <style> #example{margin:100px auto;width:600px;} .show{margin:10px;} #search ...

        1. 洛谷P3966 [TJOI2013]单词(AC自动机)
        1. 题目描述 小张最近在忙毕设,所以一直在读论文.一篇论文是由许多单词组成但小张发现一个单词会在论文中出现很多次,他想知道每个单词分别在论文中出现了多少次. 输入输出格式 输入格式: 第一行一个整数N,表 ...

        1. Android为TV端助力 Canvas 和 Paint用法
        1. 自定义view里面的onDraw方法,在这里我们可以绘制各种图形,onDraw里面有两个API我们需要了解清楚他们的用法:Canvas 和 Paint. Canvas翻译成中文就是画布的意思,Canv ...

        1. [20190305]删除审计登录信息不适合使用logrotate.txt
        1. [20190305]删除审计登录信息不适合使用logrotate.txt --//生产系统数据库sys用户登录会在/u01/app/oracle/admin/${ORACLE_SID}/adump/目 ...

        1. [20181219]script使用小技巧.txt
        1. [20181219]script使用小技巧.txt --//前几天在使用strace时遇到问题,它的输出使用标准错误句柄.--//我在想平时使用sqlplus如果输出字段很多,屏幕看起来一片混乱.-- ...

        1. C# 实体/集合差异比较,比较两个实体或集合值是否一样,将实体2的值动态赋值给实体1(名称一样的属性进行赋值)
        1. /// <summary> /// 实体差异比较器 /// </summary> /// <param name="source">源版本实体& ...

        1. fedora 29 桌面版 设置 cockpit 自动开机启动
        1. systemctl enable cockpit 时,会出现如下错误: The unit files have no installation config (WantedBy, RequiredBy ...

        1. GitHub-标签管理
        1. 参考博文:廖雪峰Git教程 1. 创建标签 切换到需要打标签的分支上,之后打标签 [root@mini05 zhangtest]# git branch dev * master [root@mini ...

        1. June 3. 2018 Week 23rd Sunday
        1. You only get one shot; do not miss your chance to blow. 机会只有一次,不要错过. From Eminem, "Lose Yoursel ...