How do I fix “sed: illegal option — r” in MacOS Sierra Android build?

[亡魂溺海] 提交于 2019-12-03 13:43:35

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

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

Editing PATH manually is one way. However, this is an alternative solution that might work for some.

Most of the developers these days have conda. conda can install the latest sed and make it visible via $PATH

conda install -c conda-forge sed

conda takes care of editing PATH variable

P.S. Most believe conda is a package manager for python, but that is not entirely true. I install everything using conda. And it manages environment variables such as PATH really well. https://superuser.com/a/1304148/266871

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!