现象:
在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]