如何修复“sed:非法选项 -- r"?在 macOS Sierra Android 版本中? [英] How do I fix "sed: illegal option -- r" in macOS Sierra Android build?

查看:17
本文介绍了如何修复“sed:非法选项 -- r"?在 macOS Sierra Android 版本中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 MacOS 上构建 Android,但它给了我这个错误:

I am trying to build Android on my MacOS, but it gives me this error:

"sed: 非法选项 -- r"

"sed: illegal option -- r"

我试过:

make bootimage
make systemimage
make recovery
brunch
mka bacon

他们都给我同样的错误.

All of them give me the same error.

推荐答案

另一种选择是使用 homebrew 安装 gnu-sed:

Another option is to use homebrew to install gnu-sed:

brew install gnu-sed --with-default-names

这篇关于如何修复“sed:非法选项 -- r"?在 macOS Sierra Android 版本中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆