on 2018-10-24

  1. install coreutils
brew install coreutils
  1. test greadlink
greadlink -f <file name>
  1. alias command line
alias readlink=greadlink

refer - How can I get the behavior of GNU’s readlink -f on a Mac?;