1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 15:23:53 -05:00

Fail hard if RBENV_NATIVE_EXT is set but extensions failed to load

This commit is contained in:
Mislav Marohnić
2014-01-04 21:59:27 +01:00
parent 68b92a7f5d
commit 3f74da0e73
3 changed files with 12 additions and 0 deletions

View File

@@ -18,6 +18,10 @@ if enable -f "${0%/*}"/../libexec/rbenv-realpath.dylib realpath 2>/dev/null; the
echo "${path%/*}"
}
else
if [ -n "$RBENV_NATIVE_EXT" ]; then
echo "rbenv: failed to load \`realpath' builtin" >&2
exit 1
fi
READLINK=$(type -p greadlink readlink | head -1)
if [ -z "$READLINK" ]; then
echo "rbenv: cannot find readlink - are you missing GNU coreutils?" >&2