View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Installing IRAF - A solution for newbies

rohit wrote on Mar 28, 2010

Every student has difficulty installing IRAF for the first time, especially if they are new to Linux. I found a link to a self-contained IRAF script that installs IRAF in less than 10 min. There are very few commands one needs.

Note this is for Ubuntu Users

The script is written by an astronomer, Fernando Andrés Ávila Castro. To install do the following:

(1) Download the ISO file from his website:
http://www.astro.uson.mx/%7Efavilac/downloads/ubuntu-iraf/iso/IRAF_Ubuntu.iso

(2) To mount the ISO file do the following in the terminal:

sudo mkdir /media/iso

sudo mount filename.iso /media/iso -t iso9660 -o loop

(3) cd /media/iso

Once you are inside. execute the command:

sh install-ubuntu.sh

That's all. Wait until it runs. The script installs the following programs and versions:

IRAF 2.14.1
STSDAS 3.11
TABLES 3.11
PyRAF 1.7
PyWCS 1.4
DS9 6.0
X11IRAF 2.0BETA
WCSTOOLS 3.7.0
TELARCHIVE 1.4
PHIST 2.0
STECF 1.5
FV 5.2.1
XVISTA 7.08

Thanks Fernando Andrés Ávila Castro for this time-saving script and not me! :-)

Hope you enjoy working with IRAF, it is amazing! :-)

Julien Marocco wrote on Mar 28, 2010

That's great !
I tried to install IRAF on my laptop following this procedure, but still I have an issue, it says :
sudo: unable to execute /iraf/iraf/unix/hlib/install: Aucun fichier ou dossier de ce type


(last sentence means "no file or directory of this kind")

I checked in the path iraf/iraf/hlib and the install file is here so I don't understand why it says there is no such file in this directory, and why it is not able to find it and execute it.

Any help would be great !
thanks in advance :wink:

Julien

PS : my system is Ubuntu 9.10, I have both tcsh and sh interpreters in the /bin directory (I did a quick search and found that errors like this may be due to bad interpreters or wrong paths for these interpreters, but mine seems fine, although I'm not sure...)

Fernando Avila Castro wrote on Mar 28, 2010

Hi, I'm the author of the script.

Usually this kind of errors came from a corrupted download.

Try downloading it again from here:

http://www.astro.uson.mx/~favilac/downloads/ubuntu-iraf/files/iraf.tar.gz

In the next version I will include a md5sum of this file, as it has happened a couple of times now.

Julien Marocco wrote on Mar 28, 2010

Thank you,

I downloaded the file, but as it's not an iso, what should I do ? should I just extract it and replace older files ? then how should I install ?

I found a few weeks ago a link on this forum to a site which describes step-by-step installation of IRAF under Ubuntu by hand, but I encountered the same problem when it came to the instruction :
"sudo ./install"

the instructions were kind of weird because they stated :

...
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
etc ...


they use redhat files but it's supposed to be ubuntu, I was kind of confused, but I tried to replace rh by ln as I noticed I had ln files which are recommended on this site for other linux distributions.
But still I had the same problem, the "install" file was not recognized.

So now from this new tar.gz I don't know what to do, extract it then install files by hand ?

thanks in advance for advices and help because I'm kind of new to linux and IRAF, so I feel a bit lost :oops:

Julien

rohit wrote on Mar 28, 2010

Julien,

The whole installation may seem daunting but it is not. I am not sure why the install did not work. It is likely the download was corrupted. I would try downloading it again with the link I provided and seeing if it works. If it does not, you will need to do through a manual install. I am giving you a link to work it out. However, I would suggest you read the whole page, including the comments people have left before you give it a try.

http://ubuntuforums.org/archive/index.php/t-912583.html

Good luck!

Rohit

Julien Marocco wrote on Mar 28, 2010

Hi !

first of all sorry for the late reply I've been busy for the past few days...
Then thank you for the link, I read the whole thread then I followed the instructions step by step but I still encountered the same problem, when it says to test the install typing "sudo ./install -n" I get the same error :

sudo: unable to execute ./install: Aucun fichier ou dossier de ce type


I really don't understand why. I checked again if the install file was here and it was, so I don't know why I still have the problem.

IRAF seems to me like Tantalus's punishment, every time I seem to get closer to install it with a new method it goes away... :(

Julien Marocco wrote on Mar 28, 2010

OK I finally found what was wrong !

I noticed that there were no csh shell installed on my ubuntu system, only tcsh (although I read somewhere that tcsh was more developped so it kind of included csh).
I installed csh shell and now it works !
I feel ashamed for such a stupid thing... :oops:

anyway thanks a lot for your help ! :wink:

Julien

Last post on Mar 28, 2010