Esta página está dedicada a los astrónomos que, como yo, usamos el programa IRAF para reducción y análisis de imágenes astronómicas. Es por eso que la guía de instalación de IRAF está en inglés, para ser compartida por toda la comunidad astronómica.
Here I describe the different steps I made to install IRAF V2.14.1 in Fedora 9, 10 and 11. The user prompt is denoted by $ and the root prompt by #.
The installation requires the C shell csh. If it isn’t in your Fedora, please install it this way:
$ sudo yum install tcsh
or
$ su -c "yum install tcsh"
A – Installing IRAF
Download the packages for a RedHat/Fedora system from http://iraf.noao.edu, which are:
- as.pcix.gen.gz (26 Mb)
- ib.rhux.x86.gz (13 Mb)
- nb.rhux.x86.gz (16 Mb)
Create the directory tree structure:
$ su # mkdir /home/iraf # mkdir /home/iraf/iraf # mkdir /home/iraf/iraf/local # mkdir /home/iraf/irafbin # mkdir /home/iraf/irafbin/bin.redhat # mkdir /home/iraf/irafbin/noao.bin.redhat # mkdir /home/iraf/source # mkdir /home/iraf/extern
Make a symbolic link:
# ln -s /home/iraf /iraf
Create the IRAF user:
# /usr/sbin/useradd -c "IRAF system login" -d /iraf/iraf/local -m -s /bin/csh -u 501 iraf
Change owner and group recursively:
# cd / # chown -R iraf iraf/ # chgrp -R iraf iraf/
Change to IRAF user:
# su iraf
Put the downloaded packages here:
$ cd /iraf/source
Unpack the downloaded files:
$ setenv iraf /iraf/iraf $ cd $iraf $ cat /iraf/source/as.pcix.gen.gz | zcat | tar -xpf - $ cd $iraf/bin.redhat $ cat /iraf/source/ib.rhux.x86.gz | zcat | tar -xpf - $ cd $iraf/noao/bin.redhat $ cat /iraf/source/nb.rhux.x86.gz | zcat | tar -xpf -
Run the install script (hit <Enter> to each question):
$ cd $iraf/unix/hlib $ source irafuser.csh $ su # ./install # exit
(click here to download a sample output from the install script).
And to complete the installation:
$ cd $ source .login $ rehash
You can verify if cl runs successfully (exit with log):
$ cl
Note: If you get the following error while trying to run cl
/iraf/iraf/bin.redhat/ecl.e: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory
this can be solved in one of the following ways. The easiest way is to get the statically linked binary from http://iraf.net/ftp/pub/fitz/ecl.e and install it in /home/iraf/irafbin/bin.redhat. For more informations about this workaround, please see my post in iraf.net.
The other workaround I found is to install libtermcap2. Please download the package from this URL:
and then install it this way:
$ sudo yum localinstall --nogpgcheck libtermcap2-2.0.8-36sls.i586.rpm
or
# su -c "yum localinstall --nogpgcheck libtermcap2-2.0.8-36sls.i586.rpm"
B – Installing X11IRAF
Download the following version of x11iraf from the site http://iraf.net/ftp/iraf/x11iraf/:
- x11iraf-v1.5DEV-bin.redhat.tar.gz (2.4 Mb)
or you can use the beta release of the new version 2.0 available here:
- x11iraf-v2.0BETA-bin.redhat.tar.gz (2.6 Mb)
where XImtool has support for 24-bit displays (see the release notes here).
Open a terminal and type:
$ su # mkdir /usr/lib/X11/app-defaults # mkdir /usr/local/src/x11iraf
Put the downloaded package here:
# cd /usr/local/src/x11iraf
Unpack the downloaded package and install:
# tar -xzf x11iraf-v1.5DEV-bin.redhat.tar.gz # ./install
(click here to download a sample output from the install script).
Good luck and please send any feedback if you experienced some problems during the installation!

[...] IRAF [...]
Thanks a lot!!!!!
Thank you for using my tutorial, any feedback is welcome!
Un fuerte abrazo,
Germán.
thank you so much!!! it works
Thank you, Lolita, for telling me that it works
Cheers,
German.
[...] pero puede ser de utilidad . Debo agradecer a gracca ya que en su blog escribió una entrada para instalar iraf en fedora, la cual adapte y me fue de mucha ayuda para hacer esta guía y el [...]
Muchas gracias a ti por la guía, en un comienzo cuando instale iraf en ubuntu me complico bastante, pero cuando lo volví a instalar, ahora en arch, encontré tu guía y agregando un par de cosas y cambiando otras, todo anduvo muy bien.
Muchas gracias por todo. Saludos y suerte.
Hola, sabes como hacer para que me acepte los comandos de xgterm y xterm, etc, me dice que no existe el comando.
Muchas gracias
Hola Tomukio:
Si no existen los programas es porque no estan instalados. Para instalar xterm hacemos:
$ sudo yum install xtermEl xgterm viene con el X11IRAF, al cual lo podes encontrar aca:
http://iraf.net/ftp/iraf/x11iraf/
Espero que puedas utilizar los terminales, si no, me avisas, ok?
Saludos y gracias por pasar por el blog!
Germán.
Thanks tutorial! Got around libtermcap library problem.
Estimado Dr. Racca la instlación se hizo sin ningun inconveniente, sin embargo al invocar al comando CL genera este error de salida:
/iraf/iraf/bin.redhat/ecl.e: error while loading shared libraries: libtermcap.so.2: cannot open shared object file: No such file or directory
Mi Fedora es el 13.
Gracias de antemano espero me pueda ayudar,
Saludos cordiales.
Ramón Molina
Hola, sabes si funciona en Ubuntu 10.04?
Hello and sorry for the delayed response.
Some time ago I wrote a script to install Iraf. You can get it from here:
http://skytux.fedorapeople.org/scripts/
Regards,
Germán.
Amigo Ramón:
Mil disculpas por la demora en responder. Tengo un script para instalar Iraf que es muy útil. Podés bajarlo de acá:
http://skytux.fedorapeople.org/scripts/
Pero si tu único problema es sobre el ecl.e, entonces usá uno estático, de esta forma. Abrí un terminal y ejecutá estos comandos:
$ wget -c -nv http://iraf.net/ftp/pub/fitz/ecl.e$ chmod +x ecl.e
$ sudo cp ecl.e /iraf/irafbin/bin.redhat
$ sudo chown -R iraf.iraf /iraf/irafbin/bin.redhat/ecl.e
Ahora ya debería funcionar bien. Cualquier problema que se te presente me avisás y lo vemos.
Abrazos,
Germán.
Hola espg:
Tengo amigos que usan Iraf en Ubuntu sin problemas.
Saludos,
Germán.