Re: Problems with the fortran compiler

From: Rick Grubin (grubin AT ucar.edu)
Date: Thu Feb 03 2005 - 12:36:14 MST

  • Next message: Pedro F. Giffuni: "something wrong in Configure"

    Hello Teodoro,

    > I've just downloaded and installed NCARG 4.4.0 on my RedHat 9.0 PC.
    > Apparently everything has been correctly installed, but when I run an
    > example to test the installation:
    >
    > $ncargex cpex08
    >
    > I am answered an error message consisting in:
    >
    > Copying cpex08.f
    >
    > Copying cpexcc.f
    >
    > Compiling and linking...
    > g77 -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/ncarg/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext
    > g77: Command not found.
    >
    > The compile and link failed.
    >
    > I can understand the error, because I have uninstalled the g77 fortran
    > compiler and installed the Intel Fortran compiler 8.0, my question is
    > how to "say" NCARG that the new fortran compiler should be invoked with
    > 'ifort' despite of 'g77'?

    The version of NCAR Graphics you downloaded was built with the GNU
    compilers, and when this was done, certain scripts were created and
    variables were set based on this.

    If you look bin: $NCARG_ROOT/bin you'll find these scripts. 'ncargex'
    and 'ncargf77' are scripts, and you can change variables within those
    scripts. In 'ncargf77' you'll find where to change things from the
    defaults (in this case, GNU g77) to what you desire (ifort).

    > Apart from that, I have tried to execute directly the command above
    > with the Intel Fortran compiler command 'ifort' and a new error appears:
    >
    > ifort -O -o cpex08 cpexcc.f cpex08.f -L/usr/local/ncarg/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext
    > ld: -lX11 not found
    >
    > Is there any library missing I need to run NCARG apart from those
    > included in the installation?

    Here, the loader is saying it cannot find the library libX11.{a,so} in the
    list of library paths ('-L...') that you've provided in which to search.
    The list of library search directories was set at 'Configure' time for
    NCAR Graphics; I admit to being surprised that /usr/X11R6/lib isn't on
    your host. If it's not, you'll have to determine where the X libraries
    are loaded, and modify the script accordingly.

    -Rick.

    --
    Rick Grubin             NCAR/CISL/SCD
    Visualization + Enabling Technologies
    grubin@ucar.edu          303.497.1832
    _______________________________________________
    ncarg-talk mailing list
    ncarg-talk@ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
    



    This archive was generated by hypermail 2b29 : Thu Feb 03 2005 - 17:25:25 MST