Mac OS 下安装 wget 报错-- [abort-due-to-no-makefile] Error 1

现象:

在MacOS下面,没有wget很不方便,尝试直接下载,configure,make会报错:

$ cd wget-1.19

$ ./configure

$ make

There seems to be no Makefile in this directory.

You must run ./configure before running 'make'.

make: *** [abort-due-to-no-makefile] Error 1

解决方法:

1使用以下命令安装HomeBrew

   /usr/bin/ruby-e "$(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"

 2 安装wget

      brewinstall wget

3测试wget的安装

wgetwww.baidu.com

--2017-08-21 21:38:53-- http://www.baidu.com/

Resolvingwww.baidu.com...180.97.33.108, 180.97.33.107

Connecting towww.baidu.com|180.97.33.108|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 2381 (2.3K) [text/html]

Saving to: ‘index.html’

 

index.html                                      100%[================================================================================================================>]  2.33K  --.-KB/s    in 0s      

 

2017-08-21 21:38:54 (71.0 MB/s) - ‘index.html’ saved[2381/2381]


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值