1. 개요
readlink: illegal option -- f usage: readlink [-n] [file ...]
2. 해결책
readlink를 greadlink로 대체한다. 다음과 같은 방법대로 조치한다.
2.1. coreutils 설치
$ brew install coreutils ==> Downloading https://homebrew.bintray.com/bottles/coreutils-8.31.mojave.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/f1/f11898e59abf1c9ea9807ab15c7cdfc930bbfe1df14e432e5d2a89f11c405445?__gda__=exp=1566921666~hmac=64f34ed7ea55fc3a5fe847fbea ######################################################################## 100.0% ==> Pouring coreutils-8.31.mojave.bottle.tar.gz ==> Caveats Commands also provided by macOS have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc like: PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" ==> Summary 🍺 /usr/local/Cellar/coreutils/8.31: 476 files, 8.8MB
2.2. greadlink 설치 확인
$ greadlink greadlink: missing operand Try 'greadlink --help' for more information.
2.3. Symbolic link 처리
$ ln -s "$(which greadlink)" "$(dirname "$(which greadlink)")/readlink"