operating system upgrade
Tom Duvall wrote on Feb 23, 2016
We upgraded our Linux systems to SUSE Linux Enterprise Server 12 (SLES 12 SP1) and I'm having a little trouble. Our system guys have said that if we have our own code, we should recompile it. My iraf is a personal copy. I'm using 64-bit iraf. When I try to execute cl, I get:
/home/duvall/iraf/bin.linux64/vocl.e: symbol lookup error: /lib64/libncurses.so.5: undefined symbol: _nc_outch_sp
And when I try to execute xgterm:
/home/duvall/bin/cl_w: line 1: /home/duvall/.iraf/bin/xgterm: No such file or directory
(but it is there)
Do I need to download a new version or recompile?
Thanks.
Tom
Mike Fitzpatrick wrote on Feb 23, 2016
/home/duvall/iraf/bin.linux64/vocl.e: symbol lookup error: /lib64/libncurses.so.5: undefined symbol: _nc_outch_sp
This error is just starting to appear in Google and looks to be an issue in the ncurses library itself, that symbol isn't explicitly referenced in IRAF from what I can tell. It's possible this could be resolved using /lib64/libncurses.so.6 but you may need to have that installed first. If you do have a /lib64/libncurses.so.6 on your machine you can test whether it fixes the problem by doing something like:
% cp /lib64/libncurses.so.6 ~/.iraf # make a copy of the library
% setenv LD_LIBRARY_PATH /home/duvall/.iraf:$LD_LIBRARY_PATH # put it at the head of the dynamic lib path
% ldd ~/iraf/bin.linux64/vocl.e # verify the .so.6 version is being used
and then start the CL. Unfortunately it is no longer possible to build the CL as a completely static binary on most systems. If you want to try relinking the binary on your system to resolve the problem, then try:
% setenv iraf /home/duvall/iraf/ # trailing '/' req'd
% setenv IRAFARCH linux64 # set environment
% source $iraf/unix/hlib/irafuser.csh #
% cd $iraf l make linux64 # reconfigure architecture
% cd pkg/vocl ; mkpkg # go to VOCL directory and relink
Then try executing the 'vocl.e' binary created. If that works do a "mkpkg update" to install the binary, it should be necessary to relink the rest of the system but I can tell you how to do that as well.
And when I try to execute xgterm:
/home/duvall/bin/cl_w: line 1: /home/duvall/.iraf/bin/xgterm: No such file or directory
The X11IRAF tools are still 32-bit binaries so it is likely that the binary won't run because you need to install the 32-bit compatibility libraries and ELF binary support. We don't use SuSE so I can't say specifically which files you'll need to install. the sysadmins should be able to help and keep in mind you'll need 32-bit X11 libraries as well.
Last post on Feb 23, 2016