Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Installing IRAF - A solution for newbies

 
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF
View previous topic :: View next topic  
Author Message
rohit
Active IRAF User


Joined: 01 Jun 2006
Posts: 86

PostPosted: Sun Mar 28, 2010 10:30 pm    Post subject: Installing IRAF - A solution for newbies Reply with quote

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! Smile

Hope you enjoy working with IRAF, it is amazing! Smile
Back to top
View user's profile Send private message
JulienM



Joined: 10 Mar 2010
Posts: 6

PostPosted: Tue Apr 06, 2010 11:56 am    Post subject: Reply with quote

That's great !
I tried to install IRAF on my laptop following this procedure, but still I have an issue, it says :
Quote:
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...)
Back to top
View user's profile Send private message
favilac



Joined: 16 Dec 2005
Posts: 8
Location: Hermosillo

PostPosted: Tue Apr 06, 2010 7:53 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
JulienM



Joined: 10 Mar 2010
Posts: 6

PostPosted: Wed Apr 07, 2010 11:38 am    Post subject: Reply with quote

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 :
Quote:

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

Julien
Back to top
View user's profile Send private message
rohit
Active IRAF User


Joined: 01 Jun 2006
Posts: 86

PostPosted: Wed Apr 07, 2010 6:22 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
JulienM



Joined: 10 Mar 2010
Posts: 6

PostPosted: Tue Apr 13, 2010 6:12 pm    Post subject: Reply with quote

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 :

Quote:
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... Sad
Back to top
View user's profile Send private message
JulienM



Joined: 10 Mar 2010
Posts: 6

PostPosted: Tue Apr 13, 2010 6:58 pm    Post subject: Reply with quote

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

anyway thanks a lot for your help ! Wink

Julien
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.17 seconds