微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

macbook安装wget失败,报:No available formula with the name "wget"

发现/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core目录是空的

后执行下面的代码,wget终于安装成功了

cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git clone https://github.com/Homebrew/homebrew-core.git
brew update
brew install wget

wget安装过程遇到几次超时,重试即可

 

/usr/local/Homebrew/Library/Taps/homebrew/目录下有三个目录,如下:

16:12:50 xxx ~ $ ll /usr/local/Homebrew/Library/Taps/homebrew/
total 0
drwxr-xr-x  17 lipengfei  admin  544  7 23 15:53 homebrew-cask
drwxr-xr-x  16 lipengfei  admin  512  7 23 15:51 homebrew-core
drwxr-xr-x  13 lipengfei  admin  416  7 23 15:53 homebrew-services

三个软件在github上都有,https://github.com/Homebrew

16:16:32 xxx /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask $ git remote -v
origin    https://github.com/Homebrew/homebrew-cask (fetch)
origin    https://github.com/Homebrew/homebrew-cask (push)
16:16:57 xxx /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask $ cd ../homebrew-services/
16:17:05 xxx /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services $ git remote -v
origin    https://github.com/Homebrew/homebrew-services (fetch)
origin    https://github.com/Homebrew/homebrew-services (push)
16:17:07 xxx /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services $ cd ../homebrew-core/
16:17:10 xxx /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core $ git remote -v
origin    https://github.com/Homebrew/homebrew-core.git (fetch)
origin    https://github.com/Homebrew/homebrew-core.git (push)

如果有异常删除目录重新下载就行

 

参考:

https://segmentfault.com/a/1190000040079396

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐