-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
realpath does not exist on Mac #221
Comments
Hi @vfrinken realpath is required for installation and as mentioned in https://github.com/idris-lang/Idris2/blob/master/INSTALL.md you can install it on Mac as part of coreutils |
I believe this issue can be closed. |
Can we check in the makefile that the required dependencies are |
This PR #1210 checks if |
Not really, it is also a runtime dependency i.e. compiled "Hello world" app includes same script. Racket's ## The following is equivalent to: DIR=$(dirname $(realpath $0))
## Non-GNU systems don't always have realpath/grealpath installed.
DIR=$PWD
LINK=$0
while [ -n "$LINK" ]; do
# If LINK is not absolute, join with DIR.
[ -n "${LINK##/*}" ] && LINK=$DIR/$LINK
DIR=$(dirname "$LINK")
LINK=$(readlink "$LINK")
done
# Canonicalize path.
DIR=$(cd -P "$DIR" && pwd -P)
# Note: For non-POSIX systems, try without the -P option.
ERR=$?; [ 0 = $ERR ] || {
echo "Script '$0' expects POSIX shell and read access." >&2
exit $ERR
} Should work on all modern systems, so let's replace the whole Caveat: |
Zsh is available by default on macOS `readlink -f` is commonly supported on Linux and BSD
Zsh is available by default on macOS readlink -f is commonly supported on Linux and BSD
In addition to idris-lang#221 remove `realpath` usage leftovers. I left the `realpath` requirement in `INSTALL.md` so bootstrapped compiler could still work.
Make the applicative combinators in `Text.Parser.Core` lazier
trying to install Idris2 in a Mac using
make bootstrap SCHEME=chez
aborts with an error message that
realpath
cannot be found, which is not surprising, since realpath doesn't exist.i propose to include something like this
(found in whatwg/html-build#90)
The text was updated successfully, but these errors were encountered: