View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

compiling on redhat linux

Jim Lewis wrote on Apr 21, 1999

Hi,

I've just tried doing:

cl> mkpkg -p mscred -p tables update

on mscred.  Things went fairly normally until the C compiler complained
that i
couldn't find f2c.h.  How do I force mkpkg to look in
$iraf/unix/bin.redhat
for this include file?

cheers, Jim Lewis

Mike Fitzpatrick wrote on Apr 21, 1999

Jim Lewis writes:
> I've just tried doing:
> 
> cl> mkpkg -p mscred -p tables update
> 
> on mscred.  Things went fairly normally until the C compiler complained
> that i couldn't find f2c.h.  How do I force mkpkg to look in
> $iraf/unix/bin.redhat for this include file?

	On some systems it may be necessary to install the f2c.h file from
the bin.redhat (i.e. hbin$) in /usr/include or /usr/local/include, on
other systems this file is present even if the F2C package hasn't been
installed.  PC-IRAF is distributed with an F2C binary and library which is
used for compilation, but one oversight of the hlib$f77.sh script used to
drive the F2C/GCC translation is that the hbin directory isn't searched as
an include directory.  To fix this you can edit the hlib$f77.sh script so
that the initial CFLAGS definition (on about line 34) explicitly passes
the path to the iraf$unix/bin.<arch> directory in the '-I' flag, e.g.

	CFLAGS=${CFLAGS:-"-I${iraf}unix/bin.${IRAFARCH}"}

As it's written now it assumes the HSI is configured for the platform arch-
itecture, but the distributed system is configured generically.  We plan
to fix this for the upcoming V2.11.2 patch, until then just ask if you have
problems or other phases of compilation under Linux.

Cheers,
-Mike

Last post on Apr 21, 1999