View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Iraf on FC6, “cl” non running for os_match problem

gianluca perini wrote on Feb 22, 2007

Hello :o
I installed Iraf on FC6, it look like all has gone well. But when I call "cl" from the terminal in ther "Iraf User" i have this warnig: " os_mach undefined variable" :? What's wrong in your opinion :?:
John

jcl wrote on Feb 22, 2007

I had this same problem with Fedora Core 6. What I did that fixed it was to edit the cl.csh file (in /iraf/iraf/unix/hlib/).

In that file under the section where it determines your architucture you need to add the line set os_mach = linux (see below). There may be another way, but this worked for me.

Jessica

# Determine platform architecture.
if ($?IRAFARCH) then
if (-e $iraf/bin.${IRAFARCH}/${cl_binary}) then
set MACH = $IRAFARCH
endif
endif

if (! $?MACH) then
if (-f /etc/redhat-release) then
if (`uname -m` == "ppc") then
setenv mach linuxppc
else
setenv mach redhat
set os_mach = linux #### ADD THIS LINE
endif

gianluca perini wrote on Feb 22, 2007

yes :o It is work fine now. Thanks for your answer,
you did great!
Cheers,
John

Last post on Feb 22, 2007