View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

IRAF on UBUNTU (URGENT)

ross58 wrote on Jun 25, 2006

After a whole day spent in front of my lap I have to ask for help again.
I’m trying to install scisoft on ubuntu.
I have followed the instruction supplied by the install file.
Everything seems to work at first sight but there are problems now and then.
I have substituted the IB and NB dir with the files ib.lnux.x86.gz and
nb.lnux.x86.gz as suggested.
The first probems arise when I write
. /scisoft/bin/Setup.bash
in fact I get
barbara@ubuntu:/scisoft/bin$ . /scisoft/bin/Setup.bash
bash: [: missing `]'
bash: i686: command not found

and when I write :

cd $iraf/unix/hlib
and then:

./install -n

I get:

The AS, IB, and NB distribution files are shown where they
*** should be unpacked. Please verify the structure and the
*** system architecture.

What shall I do?

Besides, some instruction say that I should also substitute the utilities of extern/Iraf.
I have found where to get them but I would like to receive some step by step notes if it’s possible

Thank you
Ross58

Emilliano Gregori wrote on Jun 25, 2006

Hello Ross,

the Setup.bash is not part of the iraf system, but comes from the scisoft installation, and is used by each user to set the right environment variables needed by scisoft applications (and then, by iraf).


barbara@ubuntu:/scisoft/bin$ . /scisoft/bin/Setup.bash
bash: [: missing `]'
bash: i686: command not found


this could be a syntax error in a "test operator" like:

if [ -e some_file ]
then ...
else ...
fi

or other kind of tests (that is, something different inside square brackets).
I remember there were some bugs in the scisoft scripts (at least in the OSX version...).
Could you please please post your setup.bash script, or at least the section that causes the error?

For the next problem:

The AS, IB, and NB distribution files are shown where they
*** should be unpacked. Please verify the structure and the
*** system architecture.


my guess is that, since the Setup.bash failed and did not set right value for IRAFARCH for example, the installation script could not figure out the right kind of system... maybe you can try with:


./install -m linux


to force the installer to use lnux binaries, but I'm not sure :shock:

You should also try to contact Scisoft support or helpdesk, since, I guess, your problems are due to the failing Setup.bash script...

Cheers,
Emiliano.

P.S. could you please post the output of command "set" (i.e. your environment variables) after the error in Setup.bash ?

rubab wrote on Jun 25, 2006

This page describes how to setup IRAF on a Ubuntu/Debian machine. Apart from the exact commands, there are some instructions in square brackets that need to be followed. Installation of X11IRAF, DS9, Tables, and STSDAS are included.

http://geco.phys.columbia.edu/~rubab/iraf/

santiago wrote on Jun 25, 2006

i tried that but there is no libncurses4 library to install, i enabled all repos, including backports... there is one lib that is libncurses5... but i don't know if it is correct to install this instead.
And when installing ia32-libs ia32-libs-gtk linux32, it says that:
Package ia32-libs-gtk is a virtual package provided by:
ia32-libs 2.2ubuntu11
but 2.2ubuntu11 lib is not found on the repos... again don't know if there is something missing here...

hey thanks for the reply!

Best regards,

Santiago Roland.-
Los Molinos Observatory
IAU code 844
Montevideo, Uruguay

Gregorio wrote on Jun 25, 2006

Hi Barbara and all,

I've done several successful installations of Iraf under Ubuntu.
In one of those installs I followed the instructions of Rubab and in the my last Iraf 2.14 /Ubuntu 8.06LTS I used a cd install. You can burn the ISO into a CD or like I did, installed Gmount-iso and then run the ISO file calling it from the Gmount-iso program.
This ISO I found in a webpage from Fernando Avila, a Spanish fellow,
http://cosmos.astro.uson.mx/~favilac/linastro.html and here is the link to download the iso.
http://www.astro.uson.mx/%7Efavilac/downloads/ubuntu-iraf/iso/IRAF_Ubuntu.iso.
It also install :
DS9
Pyraf
STSDAS
TABLES
etc...

I hope this tip helps a lot of unexperienced user like me to get their ubuntu / iraf to work.

Joao

santiago wrote on Jun 25, 2006

I downloaded the CD iso and noticed that it is only for 32 bit machines... so, it can't install the libraries in the first place.

My system is Ubuntu Hardy Heron (8.04 LTS) for the AMD64 bit architecture processor....

If anyone made IRAF work on a machine like this... please let me know how...

Best Regards,

Santiago.-

Gregorio wrote on Jun 25, 2006

Santiago,

This link http://mjhutchinson.com/journal/2006/11/05/install_iraf_on_ubuntu_edgy_amd64
Shows how this guy did it on Edgy, perhaps you can see how its done and give it a try.

Make sure you read all before you try...read also the comments posted at the end of the article.

Good luck

Joao Gregorio
www.atalaia.org/gregorio

Fernando Avila Castro wrote on Jun 25, 2006

Hi, I'm the author of the cd installer.

I have an updated script installer here:
http://cosmos.astro.uson.mx/~favilac/downloads/ubuntu-iraf/files/install-ubuntu64.sh

Or, you can edit the install script you already have to add the dependencies "ia32-libs ia32-libs-gtk linux32", in the DEPS line of the install.sh file.

Let me know if it works for you.

Fernando Avila Castro wrote on Jun 25, 2006

Ok, I've noticed a small problem in the scripts, which are now corrected.

The install scripts for debian and ubuntu, for 32 and 64 bits are here:

An updated iso with all the installers will be up tomorrow night.

Gregorio wrote on Jun 25, 2006

Hi Fernando,

Thanks for your trouble. It's great to have such an installer.

Joao Gregorio

Linas Petras wrote on Jun 25, 2006

favilac

Hi, I'm the author of the cd installer.

I have an updated script installer here:
http://cosmos.astro.uson.mx/~favilac/downloads/ubuntu-iraf/files/install-ubuntu64.sh

Or, you can edit the install script you already have to add the dependencies "ia32-libs ia32-libs-gtk linux32", in the DEPS line of the install.sh file.

Let me know if it works for you.


Tried the iso and was able to install IRAF system OK but get following error when it is trying to install PyRaf

/usr/lib/gcc/x86_64-linux-gnu/4.2.3/include/limits.h not found

Of course I can find the file :( Any idea why I am seeing this errors ?

Linas

Linas Petras wrote on Jun 25, 2006

oops forgot the details:

running install-ubuntu64.sh on Ubuntu8.04-x64. No errors up too the point were it starts to compile for PyRaf..

Linas

Jason Quinn wrote on Jun 25, 2006

lpetras

favilac

Hi, I'm the author of the cd installer.

I have an updated script installer here:
http://cosmos.astro.uson.mx/~favilac/downloads/ubuntu-iraf/files/install-ubuntu64.sh

Or, you can edit the install script you already have to add the dependencies "ia32-libs ia32-libs-gtk linux32", in the DEPS line of the install.sh file.

Let me know if it works for you.


Tried the iso and was able to install IRAF system OK but get following error when it is trying to install PyRaf

/usr/lib/gcc/x86_64-linux-gnu/4.2.3/include/limits.h not found

Of course I can find the file :( Any idea why I am seeing this errors ?

Linas


Scisoft needs Fedora because it requires Fedora libraries. I have tried to get it running on Ubuntu unsuccessfully. Scisoft is just a collection of software. Just install the software you need when you need it.

Jason

Fernando Avila Castro wrote on Jun 25, 2006

lpetras>

You need to install libc6-dev-amd64 .

Because I install early on build-essential I overlooked that I need to specify it in the DEPS field of the installer.

I'll have the updated files tonight. For the moment, installing this package should do it.

Last post on Jun 25, 2006