I am trying to build Android on my MacOS, but it gives me this error:
"sed: illegal option -- r"
I tried:
make bootimage
make systemimage
make recovery
brunch
mka bacon
All of them give me the same error.
I am trying to build Android on my MacOS, but it gives me this error:
"sed: illegal option -- r"
I tried:
make bootimage
make systemimage
make recovery
brunch
mka bacon
All of them give me the same error.
Another option is to use homebrew to install gnu-sed:
brew install gnu-sed --with-default-names
Editing PATH manually is one way to handle this. However, there is an alternative solution that might work for some.
Most 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 that 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