Skip to content

Commit

Permalink
fix ecl.e for old/new linux distros
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfitzpatrick committed Jan 9, 2024
1 parent 754a407 commit 3761a03
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions self_install
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,18 @@ cat x11iraf/XGterm.ad >> $HOME/.Xdefaults
if [ ! -f $HOME/.imtoolrc ]; then
cp dev/imtoolrc $HOME/.imtoolrc
fi


# Patch up the ECL binary for the appropriate Linux version. Older systems
# (e.g. CentOS 6.9) will use a version of the readline/ncurses/tinfo
# libraries that are dated on newer systems to an incompatible version.
# By default we're configured for the newer platforms, here we simply
# force the correct version.

rm bin.linux64/ecl.e
if [ -e /usr/lib64/libreadline.so.7 ] && [ -h /usr/lib64/libreadline.so.7 ];
then
ln -s ${PWD}/bin.linux64/ecl.e-readline.7 ${PWD}/bin.linux64/ecl.e
else
ln -s ${PWD}/bin.linux64/ecl.e-readline.6 ${PWD}/bin.linux64/ecl.e
fi

0 comments on commit 3761a03

Please sign in to comment.