Please note that all the SIEpedia's articles address specific issues or questions raised by IAC users, so they do not attempt to be rigorous or exhaustive, and may or may not be useful or applicable in different or more general contexts.
As one of the IRAF developers says: "Keep in mind Cygwin is no longer a supported platform and has evolved since the v2.14 system port was done. Whether it's all worth it depends on what you're trying to do, for something critical I'd recommend a supported Linux platform, perhaps run using a virtual machine on your windows system (e.g. VirtualBox)." (http://iraf.net/forum/viewtopic.php?showtopic=1468885).
Thus we also strongly recommend that you use the latest version of IRAF under a Linux (virtual) machine, in a Docker container, or under the WSL on Windows 10. See Install Astronomical Software on a laptop or ftp://iraf.noao.edu/iraf/v216/PCIX/README.install for Linux installation instructions.
04-Aug-2014: This page has been revised, and a few broken links have been fixed. The IRAF/Cygwin installation described here has been tested successfully on a Windows 8.1 PC.
Here we assume that Cygwin (32bit) has been properly installed, with all the required packages (in particular the tcsh shell, wget, X11 including xinit, ncurses including libncurses7). We also assume that you have at least some familiarity with Cygwin and with IRAF.
Announcements for new or updated IRAF ports are posted in the IRAF Web Site: http://iraf.net/
Note: Pascal di SCALA, a French student, has made available an automated installer for IRAF under Cygwin. You might wish to use it instead of following the instructions below. For details, see http://ns11.freeheberg.com/~m2ccp/ (also available in french, http://ns11.freeheberg.com/~m2ccp/IRAF_francais.html)
mkdir /cygdrive/c/iraf-files
cd /cygdrive/c/iraf-files/
wget http://iraf.noao.edu/iraf/ftp/iraf/v214/PCIX/as.pcix.gen.gz
(25M) wget http://iraf.noao.edu/iraf/ftp/iraf/v214/PCIX/ib.cygw.x86.gz
(12M) wget http://iraf.noao.edu/iraf/ftp/iraf/v214/PCIX/nb.cygw.x86.gz
(24M)
mkdir /iraf
mkdir /iraf/iraf
mkdir /iraf/irafbin
mkdir /iraf/irafbin/bin.cygwin
mkdir /iraf/irafbin/noao.bin.cygwin
mkdir /iraf/extern
cd /iraf/iraf/
tar -zxvf /cygdrive/c/iraf-files/as.pcix.gen.gz
cd /iraf/irafbin/bin.cygwin/
tar -zxvf /cygdrive/c/iraf-files/ib.cygw.x86.gz
cd /iraf/irafbin/noao.bin.cygwin/
tar -zxvf /cygdrive/c/iraf-files/nb.cygw.x86.gz
cd /iraf/iraf/unix/hlib/
./install -n
# if the output messages look fine then ... ./install
mkiraf
, reply xgterm when asked about terminal type: mkdir -p /home/ncaon/iraf
cd /home/ncaon/iraf/; mkiraf
Note: /usr/local/bin must be in the user's path. More details about how to check or set your path in cygwin can be found in this IRAF forum thread: http://iraf.net/forum/viewtopic.php?forum=4&showtopic=139065
cd /cygdrive/c/iraf-files/
wget http://iraf.noao.edu/iraf/ftp/iraf/x11iraf/x11iraf-v2.0BETA-bin.cygwin.tar.gz
(6M) tar -zxvf x11iraf-v2.0BETA-bin.cygwin.tar.gz
cp bin.cygwin/xgterm.exe /usr/local/bin/
chmod a+x /usr/local/bin/xgterm.exe
cd /usr/local/bin/
cp /cygdrive/c/iraf-files/ds9/ds9.exe /usr/local/bin/
cp /cygdrive/c/iraf-files/ds9/ds9.zip /usr/local/bin/
export IMTDEV="inet:5137:127.0.0.1"
mkdir /cygdrive/c/iraf-files/external/
cd /cygdrive/c/iraf-files/external/
wget http://research.iac.es/sieinvens/siepedia/uploads/HOWTOs/iraf-cygwin-files.tar
tar -xvf iraf-cygwin-files.tar
mkdir /iraf/extern/tables ; cd /iraf/extern/tables/
tar -zxvf /cygdrive/c/iraf-files/external/tables39-src.tar.gz
tar -zxvf /cygdrive/c/iraf-files/external/tables39-bin.cygwin.tar.gz
mkdir /iraf/extern/stsdas ; cd /iraf/extern/stsdas/
tar -zxvf /cygdrive/c/iraf-files/external/stsdas39-src.tar.gz
tar -zxvf /cygdrive/c/iraf-files/external/stsdas39-bin.cygwin.tar.gz
mkdir /iraf/extern/gemini ; cd /iraf/extern/gemini/
tar -zxvf /cygdrive/c/iraf-files/external/gemini_v1.9-bin.cygwin.tar.gz
tar -zxvf /cygdrive/c/iraf-files/external/gemini_v1.9-src.tar.gz
mkdir /iraf/extern/ctio ; cd /iraf/extern/ctio/
tar -zxvf /cygdrive/c/iraf-files/external/ctio-src.tar.gz
tar -zxvf /cygdrive/c/iraf-files/external/ctio-bin.cygwin.tar.gz
mkdir /iraf/extern/fitsutil ; cd /iraf/extern/fitsutil/
tar -zxvf /cygdrive/c/iraf-files/external/fitsutil-src.tar.gz
tar -zxvf /cygdrive/c/iraf-files/external/fitsutil-bin.cygwin.tar.gz
mkdir /iraf/extern/nmisc ; cd /iraf/extern/nmisc/
tar -zxvf /cygdrive/c/iraf-files/external/nmisc-src.tar.gz
tar -zxvf /cygdrive/c/iraf-files/external/nmisc-bin.cygwin.tar.gz
At this point everything is ready for running IRAF.
startx
or startxwin
ds9 &
xgterm -font 9x15 -sb -ls &
cd /home/ncaon/iraf/
ecl
I haven't used IRAF in Cygwin for any serious work, but it seems to work quite nicely.
There are many external packages already available in binary form for Cygwin. We download both the source and the cygwin binary files.
As file names or release numbers may vary, please check them first in http://iraf.net/ftp/iraf/extern/, and modify the commands below accordingly. cd /cygdrive/c/iraf-files/
wget http://iraf.net/ftp/iraf/extern/ctio-src.tar.gz
wget http://iraf.net/ftp/iraf/extern/ctio-bin.cygwin.tar.gz
wget http://iraf.net/ftp/iraf/extern/gemini_v1.9-src.tar.gz
wget http://iraf.net/ftp/iraf/extern/gemini_v1.9-bin.cygwin.tar.gz
wget http://iraf.net/ftp/iraf/extern/stsdas39-src.tar.gz
wget http://iraf.net/ftp/iraf/extern/stsdas39-bin.cygwin.tar.gz
wget http://iraf.net/ftp/iraf/extern/tables39-src.tar.gz
wget http://iraf.net/ftp/iraf/extern/tables39-bin.cygwin.tar.gz
wget http://iraf.net/ftp/iraf/extern/fitsutil-src.tar.gz
wget http://iraf.net/ftp/iraf/extern/fitsutil-bin.cygwin.tar.gz
wget http://iraf.net/ftp/iraf/extern/nmisc-src.tar.gz
@@ wget http://iraf.net/ftp/iraf/extern/nmisc-bin.cygwin.tar.gz @