I was trying to build a docker image for tikv on my mac, and it shows some error message as below.
I briefly searched among the issues and didn't find some existing issues, so I'm not sure if this is intended or not.
not relevant
MacOS
run make docker
command succeeds without error
$ make docker
bash ./scripts/gen-dockerfile.sh | docker build -t pingcap/tikv -f - .
sed: illegal option -- r
...
I had this issue the other day. Whichever version of sed ships with MacOS is not the version anticipated by this script. Try installing gnu-sed via:
brew install gnu-sed
and make sure that /usr/local/opt/gnu-sed/libexec/gnubin appears before wherever the default sed is in your path
Thank you @bunker-inspector !
Most helpful comment
I had this issue the other day. Whichever version of
sedships with MacOS is not the version anticipated by this script. Try installing gnu-sed via:brew install gnu-sedand make sure that
/usr/local/opt/gnu-sed/libexec/gnubinappears before wherever the defaultsedis in your path