View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

x86.64 iraf

yuniraf wrote on Oct 29, 2006

I am running iraf on linux on the 64-bit x86 (AMD64) platform. Everything seems to work fine, except when I try to use "fc" to compile a IRAF/Fortran program.
It gives a large number of warnings all like:

/usr/bin/ld: warning: i386 architecture of input file `/iraf/iraf/unix/bin.redhat/libcompat.a(C_name.o)' is incompatible with i386:x86-64 output

I get basically one line like this one for every library in /iraf/iraf/unix/bin.redhat/
Then it creates a binary but it does not run. That is, it runs but returns the prompt without doing anything.

Is there full support for this platform? What should I do?

Thanks!

Mike Fitzpatrick wrote on Oct 29, 2006

Compilation is not supported on 64-bit systems however the 32-bit binaries are known to work. What this means is that you'll need to compile your programs on a 32-bit system and move them over when done. Full support for 64-bit systems is on the list of projects but is a fairly big effort due to the amount of testing required even beyond the basic port.

-Mike

labiano wrote on Oct 29, 2006

Hi,

I am running IRAF also on a 64-bit pc. I installed it from the ESO/Scisoft distribution.

I am trying to run xcsao (in the rvsao package) and get the following error:
error while loading shared libraries: libg2c.so.0: wrong ELF class: ELFCLASS64

Anyone knows a way around this?

Thnak you very much!
Alvaro

Mike Fitzpatrick wrote on Oct 29, 2006

The error means the binary is trying to load the libg2c shared library and finding only a 64-bit version. There may be some sort of "32-bit compatability" package you can install on your machine to workaround this, otherwise you're best bet is to find a statically linked binary for the package. I may be able to build one later today if you don't have any luck.

-Mike

labiano wrote on Oct 29, 2006

Hi Mike,

Thank you for your answer.

I have not found a"32-bit compatibility program". So I copied a 32-bit library ifrom another PC in my /usr/lib directory and the problem seems to dissappear.

Now I get :
IRAF rvsao.xcsao 2.3.2 labiano@localhost.localdomain 02-Nov-2006 17:03
ERROR: segmentation violation

but I am not sure if the problem still comes from the libraries or from my data.

Anyway, if you find time to build the library, please let me know.

Thank you very much once again!
Alvaro

Mike Fitzpatrick wrote on Oct 29, 2006

I put a statically linked linux binary at http://iraf.net/pub/fitz/x_rvsao.e-LINUX_STATIC

This was built from the latest RVSAO 2.5.3 sources from ftp://cfa-fta.harvard.edu/pub/iraf/rvsao-2.5.3.tar.gz. Just download the file and rename it 'x_rvsao.e' and put it in your package bin directory. If you still get the segvio then you should contact the package author (Doug Mink reads this site occassionally and may notice this message). Hope it helps.

Cheers,
-Mike

labiano wrote on Oct 29, 2006

Hi,
I cannot access the link for the library.

404 Not Found
The requested URL /pub/fitz/x_rvsao.e-LINUX_STATIC does not exist.
Site Still Under Construction

Thanks!
Alvaro

Mike Fitzpatrick wrote on Oct 29, 2006

Sorry, should be fixed now.......

yuniraf wrote on Oct 29, 2006

Thanks for the information. It works...
All we need is to use a 32-bit machine with the same architecture.

labiano wrote on Oct 29, 2006

I still get the segvio. I will contact the rvsao designer and see how can I fix it. Anyway, I found an older computer where it seems to work.

Thanks for all your help!
Alvaro

yara wrote on Oct 29, 2006

Hi, I found this thread by searching from iraf problems with libg2c and although is not quite the problem I'm getting I thought I should post it here anyway.

So my problem is I'm trying to run xcsao in my laptop (32 bit kernel) and I'm getting this:

/scisoft/share/iraf/extern/rvsao/bin.redhat/x_rvsao.e: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory

I believe this problem arose after I upgraded my Ubuntu 10.04.

Any ideas on how to solve it?
Some IT people have tried to help me and failed and I'm a bit desperate!

Thanks a lot

yara

Mike Fitzpatrick wrote on Oct 29, 2006

I rebuilt the static binary at http://iraf.net/pub/fitz/x_rvsao.e-LINUX_STATIC from the latest RVSAO 2.7.8 sources so I'd suggest you download this and install it in the RVSAO bin.redhat directory. The linux scisoft distribution may also be a little old for your OS and you'll see similar problems with other binaries, chances are good that simply relinking the package on your machine will use the newer libs on your machine and likewise solve the problem.

Last post on Oct 29, 2006