Re: ncarg4.1.1 with linux redhat 6.1

From: Mary Haley (haley AT unknown)
Date: Wed Oct 04 2000 - 07:50:41 MDT

  • Next message: Scott Goodrick: "Allocation of workspace problem"

    >
    > Hello All,
    > We have recently compiled and installed the ncargversion 4.1.1 on i686
    > running redhat 6.1. However when I tried the basic examples from HLUEX
    > directory, it gave the following error message.....
    > ==========================
    > $ng4ex basic01f.f
    >
    > NCAR Graphics High Level Utility Fortran Example <basic01f>
    > Copying basic01f.f
    > Compiling and linking...
    > g77 -o basic01f basic01f.f -L/usr/local/ncarg/lib -L/usr/X11R6/lib
    > -L/usr/local/lib -I/usr/local/ncarg/include -I/usr/X11R6/include -lhlu -lncarg -lncarg_gks -lncarg_c -lX11 -Wl,-Bstatic -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.27 -lf2c -Wl,-Bdynamic -lm
    > /usr/bin/ld: cannot find -lf2c
    > collect2: ld returned 1 exit status
    > Executing <basic01f>...
    >
    > ============================
    > Does this mean that if I download and install the f2c RPM this should go away?
    > I will try the same, meantime any input will be appreciated.
    > Thanks much in advance,
    > raj

    Dear Raj,

    You probably already have the f2c library installed on your
    system. You just need to find it and then modify the compilation
    script to point to the correct path.

    Try looking somewhere under /usr/lib/gcc-lib/i386-redhat-linux. It
    should be in a directory "egcs-x.yy.zz" where "x.yy.zz" is a version
    number.

    Once you find it, modify the file $NCARG_ROOT/bin/nhlf77 and change
    the following path:

       -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.27

    to the one that contains "libf2c.a" on your system. You might need to
    modify $NCARG_ROOT/bin/{nhlcc,ncargf77,ncargcc} and make similar
    changes.

    --Mary



    This archive was generated by hypermail 2b29 : Wed Oct 04 2000 - 07:57:04 MDT