Welcome to iraf.net Saturday, April 20 2024 @ 01:11 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 fc compilation error in Ubuntu
   
german
 03/18/2013 06:29PM (Read 2674 times)  
+----
Newbie

Status: offline


Registered: 10/02/2008
Posts: 11
I have installed IRAF v2.16 64-bits to a friend in an Ubuntu 12.04 LTS installation. When he tryies to compile a cl script that uses fortran, he gets the following error:[b:fd0ab69f59]vocl> fc strl.f
/iraf/iraf/unix/hlib/f77.sh: 195: /iraf/iraf/unix/hlib/f77.sh: /iraf/iraf/unix/bin.linux64/f2c.e: not found
gcc: error: strl.c: No existe el archivo o el directorio
gcc: error fatal: no hay ficheros de entrada
compilación terminada.
link:
gcc: error: strl.o: No existe el archivo o el directorio[/b:fd0ab69f59]I use Fedora and this doesn't happen.Any help is appreciated.Germán.

 
Profile Email Website
 Quote
jturner
 03/18/2013 06:29PM  
+++++
Active Member

Status: offline


Registered: 12/29/2005
Posts: 165
Is your IRAFARCH environment variable set correctly? Do you have binaries in /iraf/iraf/unix/bin.linux64 or /iraf/iraf/unix/bin.linux? Just an idea.

 
Profile Email
 Quote
german
 03/18/2013 06:29PM  
+----
Newbie

Status: offline


Registered: 10/02/2008
Posts: 11
@jturner: thanks for your answer. The output of the commands are:vocl> !echo $IRAFARCH
linux64vocl> ls /iraf/iraf/unix/bin.linux
(nothing here)vocl> ls /iraf/iraf/unix/bin.linux64
alloc.e generic.e mach.h rtar.e sgi2uhpgl.e sgi2xbm.e xyacc.e
f2c.1 iraf.h mkpkg.e sgi2gif.e sgi2uhplj.e sgidispatch.e
f2c.1.gz libboot.a rmbin.e sgi2svg.e sgi2uimp.e wtar.e
f2c.e libf2c.a rmfiles.e sgi2uapl.e sgi2uptx.e xc.e
f2c.h libos.a rpp.e sgi2ueps.e sgi2uqms.e xpp.e

 
Profile Email Website
 Quote
fitz
 03/18/2013 06:29PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Although the unix$bin.linux64/f2c.e binary exists, I suspect you're getting the 'not found' message because it cannot be run, and that probably because it is still a 32-bit binary requiring the ia32-libs package. This hasn't been distributed with Ubuntu since 11.10 but is still around as a convenience package if you do[code:1:fcfb4b341c]sudo apt-get install package-name:i386[/code:1:fcfb4b341c]You can verify the before/after dependencies using 'ldd' on the f2c.e to be sure the libc.so is found. If you have F2C already installed on the machine in say /usr/bin/f2c. you might also try just copying this to replace the f2c.e (keep the 'f2c.e' name though!) binary, but beware I haven't actually tried this yet. Originally F2C was shipped with IRAF because it wasn't standard on most default systems, it may be time to revisit that idea and use the host version as platforms gradually drop their 32-bit compatability.

 
Profile Email
 Quote
german
 03/18/2013 06:29PM  
+----
Newbie

Status: offline


Registered: 10/02/2008
Posts: 11
Installing [b:527e702c90]ia32-libs[/b:527e702c90] did the trick!It is weird that the 64-bits version of Iraf is shipped with a 32-bits binary, I didn't know about that.It would be nice if the next Iraf release includes only 64-bits binaries in the binary tarball SmileThanks very much for your help!Germán.

 
Profile Email Website
 Quote
   
Content generated in: 0.14 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login