I upgraded my computer and installed the ferret 7.0 on my new Mac. There is no problem with the installation. However, when I run ferret in the terminal, I have the following error:
dyld: Symbol not found: _rl_event_hook
Referenced from: /usr/local/ferret/bin/ferret
Expected in: /usr/lib/libedit.3.dylib
in /usr/local/ferret/bin/ferret
https://brew.sh) and come back." >&2
exit 2
fi
#--- Install miniconda ---
conda="$CONDABASE/bin/conda"
if [ -e "$conda" ]; then
$echo "You seems to already have miniconda in $CONDABASE."
read -p "Shall I use it? If unsure, say yes [y/n]: " ans
case "$ans" in
Y|y|YES|Yes|yes) ;;
*)
$echo "Okay, you seem to want to use another miniconda installation."
$echo "Modify the CONDABASE variable in this script"
$echo " and come back again."
exit 0;;
esac
else
$echo "You don't seem to have miniconda yet."
read -p "Shall I install it? If unsure, say yes [y/n]: " ans
case "$ans" in
Y|y|YES|Yes|yes) ;;
*)
$echo "Okay, I suppose you have a miniconda installation"
$echo " somewhere I didn't expect."
$echo "Modify the CONDABASE variable in this script"
$echo " and come back again."
exit 0;;
esac
brew cask install miniconda
fi
#--- Install PyFerret ---
conda="$CONDABASE/bin/conda"
if [ ! -e "$conda" ]; then
$echo "I expected to find miniconda in ${CONDABASE}" >&2
$echo " but failed to find it there." >&2
$echo "If you know where it is installed," >&2
$echo " modify the CONDABASE variable in this script and run it again.">&2
exit 3
fi
read -p "Shall I update miniconda? If unsure, say yes. [y/n]: " ans
case "$ans" in
Y|y|YES|Yes|yes)
$conda update conda
$conda update --all;;
esac
read -p "I'll now install PyFerret. Shall I go ahead? [y/n]: " ans
Y|y|YES|Yes|yes)
$conda create -n FERRET -c conda-forge pyferret ferret_datasets --yes
*) exit 0
esac
#--- Install pyferret.sh ---
cat > "$wrapper" <<EOF
#!/bin/sh
CONDABASE="$CONDABASE"
EOF
cat >> "$wrapper" <<'EOF'
. $CONDABASE/bin/activate FERRET
#export FER_GO="$FER_GO $HOME/lib/ferret"
#export FER_DATA="$FER_DATA $HOME/lib/ferret"
#export FER_PALETTE="$FER_PALETTE $HOME/lib/ferret/ppl"
exec $CONDABASE/envs/FERRET/bin/pyferret -nojnl "$@"
EOF
$echo "A wrapper script $wrapper has been created."
bindir="$HOME/bin"
$echo "Shall I install $wrapper in your
read -p "If unsure, say yes. [y/n]: " ans
case "$ans" in
Y|y|YES|Yes|yes) ;;
*) $echo "Okay, I'll leave the script $wrapper here."
$echo "You may want to copy it to /usr/local/bin or somewhere"
$echo " and give it an exec permission by chmod +x $wrapper ."
exit 0
esac
if [ ! -e "$bindir" ]; then
mkdir "$bindir" || exit 5
fi
cp "$wrapper" "$bindir/"
chmod +x "$bindir/$wrapper"
$echo "If your PATH doesn't include
$echo " include it by export PATH=\$HOME/bin:\$PATH"
$echo " in your .bashrc or similar."
$echo "After making this arrangment, log out and log in again,"
$echo " then, you'll be able to lauch PyFerret just by typing $wrapper "
$echo " on your command line."
[Thread Prev][Thread Next][Index]