View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

installing IRAF on Fedora 10 - error - please help!

super zach wrote on Jan 29, 2009

Hi,

I have (almost) installed the latest version of iraf on Fedora 10, have installed the program and all seems fine, I have run mkiraf and seems ok, but when I type "cl" I get the following error:

[zach@localhost ~]$ cl
setting terminal type to xgterm...
timeout - terminal type set wrong? (`stty termtype' to reset)
ERROR: Abnormal termination of child process 'bin$x_system.e'
called as: `cl ()'
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.

Now, of course I have rebuilt login.cl many many many times using mkiraf, but I just cant get IRAF to run properly. Do any brilliant and clever people have any suggestions please?

Thanks, and hoping for help
Zach

:cry:

super zach wrote on Jan 29, 2009

my problem seems a bit similiar to the post:

http://iraf.net/phpBB2/viewtopic.php?t=87211

consequently, here is the print out of when i run csh -x /usr/local/bin/cl

[zach@localhost ~]$ csh -x /usr/local/bin/cl
set cl_binary = ecl.e
if ( `echo $0 | egrep ecl` != ) then
egrep ecl
echo /usr/local/bin/cl
if ( `echo $0 | egrep vo` != ) then
echo /usr/local/bin/cl
egrep vo
if ( 0 > 0 ) then
set d_iraf = /home/iraf/
if ( 0 ) then
if ( 0 == 0 ) then
setenv iraf /home/iraf/
endif
if ( 0 > 0 ) then
if ( 0 ) then
if ( ! 0 ) then
set os_mach = `uname -s | tr '[A-Z]' '[a-z]' | cut -c1-6`
uname -s
cut -c1-6
tr [A-Z] [a-z]
if ( -f /etc/redhat-release ) then
if ( `uname -m` == ppc ) then
uname -m
setenv mach redhat
endif
else
if ( redhat == darwin ) then
if ( linux == cygwin ) then
if ( -e /home/iraf//bin.redhat/ecl.e ) then
set MACH = redhat
else if ( -e /home/iraf//bin.freebsd/ecl.e ) then
endif
if ( 0 && ! ( 0 ) ) then
if ( 0 ) then
if ( redhat == freebsd ) then
if ( redhat == linux ) then
if ( redhat == redhat ) then
setenv IRAFARCH redhat
else if ( redhat == linuxppc ) then
if ( redhat == redhat || redhat == linux || redhat == linuxppc ) then
limit stacksize unlimited
endif
setenv arch .redhat
setenv IRAFBIN /home/iraf/bin.redhat/
set file = /home/iraf/bin.redhat/ecl.e
exec /home/iraf/bin.redhat/ecl.e
/home/iraf/bin.redhat/ecl.e
setting terminal type to xgterm...
timeout - terminal type set wrong? (`stty termtype' to reset)

ERROR: Abnormal termination of child process 'bin$x_system.e'
called as: `cl ()'
Error while reading login.cl file - may need to rebuild with mkiraf
Fatal startup error. CL dies.
[zach@localhost ~]$

Mike Fitzpatrick wrote on Jan 29, 2009

There are two errors here: The 'wrong terminal type' means you aren't actually using an XGterm window (probably an Xterm, note the gnome-terminal et al don't support graphics and shouldn't be used, but will print the same error) and so the stty command is failing. You can reset the proper terminal type with a new MKIRAF when prompted, or else start IRAF from an xgterm window.

The 'abnormal termination' means the x_system.e died when it was started for some reason. Simplest way to find out why is to run the command /home/iraf/bin.redhat/x_system.e from the unix prompt and post the host error message. You can use the 'ldd' command in linux to see if there are any missing shared libraries, but as far as I know IRAF works fine under Fedora 10.

-Mike

super zach wrote on Jan 29, 2009

Hi,

well i did run mkiraf many many times with all the different types of windows, xgteem, xterm, gterm, and all produced the same error message.

secondly, i ran the command you gave:

[zach@localhost ~]$ /home/iraf/bin.redhat/x_system.e
/home/iraf/bin.redhat/x_system.e: Command not found.
[zach@localhost ~]$

Yesterday I installed Fedora 10, the 32bit os and installed IRAF and it installed and ran fine. I was then told to install the 64bit os fedora 10 as the 32bit wont allow me to run stsci_python as well. So i installed the 64bit os, installed IRAF in total three times, and each time it fails miserably.

I had been using ubuntu 8.10 previously and it ran fine, I had IRAF running on it but I couldnt get it to install stsci_python. then ubuntu crashed and i was told fedora would be better, plus the IT guys use fedora here and I was hoping on their support. But we are all stumped!

Mike Fitzpatrick wrote on Jan 29, 2009


well i did run mkiraf many many times with all the different types of windows, xgteem, xterm, gterm, and all produced the same error message.


Let's assume for the minute this is related, e.g. if all binaries are broken then the CL 'stty' command might be as well (or it might be a missing termcap installation of some other config problem).

secondly, i ran the command you gave:

[zach@localhost ~]$ /home/iraf/bin.redhat/x_system.e
/home/iraf/bin.redhat/x_system.e: Command not found.


I got that path from the output of the CL command you sent earlier whcih indicates your $iraf is /home/iraf. First, verify that the file /home/iraf/bin.redhat/x_system.e actually exists and that the file has execute permissions. If so, run the 'ldd' command on the file to see if there are missing shared libs. Since you say this only fails on the 64-bit OS I'd suspect some missing 32-bit compatability libs for glibc. IRAF is still a 32-bit system and AFAIK stsci_python should be happy with that as well.

If, OTOH, the file doesn't exist then the files may have been unpaacked incorrectly. If /home/iraf is your $iraf then the normal install is expecting a /home/irafbin/bin.redhat directory to contain the file like ecl.e and x_system.e (/home/iraf/bin.redhat is a symlink unless you changed it to a physical directory). Is this your setup?

-Mike

Last post on Jan 29, 2009