Error when running command cl
Maria wrote on Dec 02, 2016
I have installed Iraf in Cygwin but when I try to run the cl command this error appears:
os.zgtenv: cannot open `/usr/include/iraf.h'
task `cl' has no param file
Fatal startup error. CL dies.
Mike Fitzpatrick wrote on Dec 06, 2016
Did you run the IRAF install script as the root user or with the 'sudo' command? Did you define the correct $iraf root directory and did it include a trailing '/' character?
The /usr/include/iraf.h symlink is created by the install script and is used primarily by tasks to get the iraf root path since many other paths are constructed from this. If that link is invalid because the path given to the install script was wrong, or you simply didn't run the install script to create it, then this is the typical error. One workaround until this is sorted out is simply to define $iraf in your environment before starting the CL, e.g.
% setenv iraf /iraf/iraf/ # C-shell, trailing '/' required
% export iraf=/iraf/iraf/ # Bash, trailing '/' required
To make these permanent you can add them to your login files (e.g. $HOME/.login, $HOME/.cshrc, $HOME/.profile, etc).
Last post on Dec 06, 2016