From 3761a03d6bb3d91e5da0a9562e778654f59ab2a3 Mon Sep 17 00:00:00 2001 From: Mike Fitzpatrick Date: Mon, 8 Jan 2024 22:31:43 -0600 Subject: [PATCH] fix ecl.e for old/new linux distros --- self_install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/self_install b/self_install index c4d745a59..5f13a6b99 100755 --- a/self_install +++ b/self_install @@ -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