IrafInstallation

From MediaWiki

Revision as of 15:53, 14 March 2010 by Ana (Talk | contribs)
Jump to: navigation, search

IRAF Setup on Ubuntu/Debian

Taken from http://ihateskittles.com/iraf/

Updated 2.17.2010

This page describes how to setup IRAF on a 32-bit Ubuntu/Debian machine. Installation of X11IRAF, DS9, Tables, and STSDAS are also included.

It will be easiest if you just copy-paste the instructions one by one. Please be sure to read and implement the instructions in brackets as well.

(For 64-bit installation, use

http://ihateskittles.com/iraf/iraf_amd64.txt )

Based on instructions by: Rubab Khan (http://geco.phys.columbia.edu/~rubab/) and Michael Hutchinson (http://mjhutchinson.com/journal/2006/11/05/install_iraf_on_ubuntu_edgy_amd64)


sudo apt-get install tcsh

wget http://ihateskittles.com/iraf/ldso_1.9.11-15_i386.deb

sudo dpkg -i ldso_1.9.11-15_i386.deb

wget http://ihateskittles.com/iraf/libc5_5.4.46-15_i386.deb

sudo dpkg -i libc5_5.4.46-15_i386.deb

wget http://ihateskittles.com/iraf/termcap-compat_1.2.3_i386.deb

sudo dpkg -i termcap-compat_1.2.3_i386.deb

[[Use System>Administration>Users and Groups to create an account with username "iraf", real name "IRAF Maintenance", home directory "/iraf/iraf/local", shell "/bin/tcsh", and a secure password. For sudo commands here on, use this password.]]

sudo chown -R iraf:iraf /iraf

su iraf

mkdir /iraf/irafbin

mkdir /iraf/irafbin/bin.linux

mkdir /iraf/irafbin/noao.bin.linux

mkdir /iraf/x11iraf

mkdir /iraf/extern

cd /iraf/iraf

wget http://iraf.net/ftp/iraf/v214/PCIX/as.pcix.gen.gz

tar -zxf as.pcix.gen.gz

rm as.pcix.gen.gz

cd /iraf/iraf/unix/bin.redhat/

mv * ../bin.linux/

cd /iraf/irafbin/bin.linux

wget http://iraf.net/ftp/iraf/v214/PCIX/ib.rhux.x86.gz

tar -zxpf ib.rhux.x86.gz

rm ib.rhux.x86.gz

cd /iraf/irafbin/noao.bin.linux

wget http://iraf.net/ftp/iraf/v214/PCIX/nb.rhux.x86.gz

tar -zxpf nb.rhux.x86.gz

rm nb.rhux.x86.gz

setenv iraf /iraf/iraf/

cd $iraf/unix/hlib

source irafuser.csh

During the next step keep hitting enter to select the default settings. When it finishes you should receive "Installation Completed With No Errors".

sudo ./install

sudo apt-get install libncurses5

cd /iraf/x11iraf/

wget http://iraf.net/ftp/iraf/x11iraf/x11iraf-v1.5DEV-bin.redhat.tar.gz

tar -zxf x11iraf-v1.5DEV-bin.redhat.tar.gz

mv lib.redhat lib.linux

mv bin.redhat bin.linux

Again keep hitting enter to select the default settings. When it finishes you should receive "Installation complete".

sudo ./install

rm x11iraf-v1.5DEV-bin.redhat.tar.gz

wget http://hea-www.harvard.edu/saord/download/ds9/linux/ds9.linux.6.0.tar.gz

tar -zxf ds9.linux.6.0.tar.gz

rm ds9.linux.6.0.tar.gz

sudo mv ds9 /usr/local/bin/

cd /iraf/extern/

mkdir tables stsdas

cd /iraf/extern/tables/

wget http://stsdas.stsci.edu/download/tables_3.11/tables3.11.tar.gz .

tar zxf tables3.11.tar.gz

rm tables3.11.tar.gz

cd bin.linux/

wget http://stsdas.stsci.edu/download/tables_3.11/tables3.11.bin.redhat.tar.gz .

tar zxf tables3.11.bin.redhat.tar.gz

rm tables3.11.bin.redhat.tar.gz

cd /iraf/extern/stsdas

wget http://stsdas.stsci.edu/download/stsdas_3.11/stsdas3.11.tar.gz .

tar zxf stsdas3.11.tar.gz

rm stsdas3.11.tar.gz

cd bin.linux

wget http://stsdas.stsci.edu/download/stsdas_3.11/stsdas3.11.bin.redhat.tar.gz .

tar zxf stsdas3.11.bin.redhat.tar.gz

rm stsdas3.11.bin.redhat.tar.gz

cd /iraf/extern/stsdas

python python/compileall.py ./python

python python/compileall.py ./python/*

Here you will have several lines saying it can't list various files. This is not an error and is just an artifact of using the *.

cd

wget http://ihateskittles.com/iraf/extern.pkg

sudo mv extern.pkg /iraf/iraf/unix/hlib/extern.pkg

exit

cd

wget http://ihateskittles.com/iraf/goiraf

sudo chmod u=rwx goiraf

sudo mv ./goiraf /usr/local/bin/goiraf

mkdir ~/iraf

cd ~/iraf

mkiraf

Select "xgterm" as your IRAF shell when prompted.


The command 'goiraf' will now launch a complete IRAF session containing DS9, xgterm and ecl, based in ~/IRAF. Alternately, type "ecl" for enhanced IRAF, "cl" for regular IRAF, and "ds9" for standalone DS9 launch. Please note that "tables" and "stsdas" can only be used within IRAF.

Don't forget to edit your login.cl as well as strip the administrative abilities from the iraf user.

Repeat the last 4 steps for each user as needed.

END

Personal tools