Re: NCL Installation Question ---

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 9 Oct 2008 17:20:26 -0600 (MDT)

There could be three things going on here:

   1. You don't have gfortran installed on your system.

       If this is the case, then you will need to either install
       the version of gfortran that has libgfortran.so.1 as part of
       it, or else you will need to build NCL from source code using
       the C/Fortran compilers you do have.

   2. You have gfortran installed, but it doesn't have libgfortran.so.1.

       If this is the case, then follow the instructions in #1 above.
       I know some folks that didn't need to install a full version of
       gfortran. They simply grabbed the "libgfortran.so.1" file from
       somewhere, and put it with their current gfortran distribution.

       You may then need to set the LD_LIBRARY_PATH environment variable
       to point to the location of libgfortran.so.1. For example, if it
       is in /usr/local/gfortran/lib, then you would use one of the
       following two commands, depending on whether you already have
       a LD_LIBRARY_PATH set:

       If you already have one:

         setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/gfortran/lib

       If you don't have one:

         setenv LD_LIBRARY_PATH /usr/local/gfortran/lib

   3. You do have gfortran installed, and you do have
      "libgfortran.so.1".

      If this is the case, then you need to "help" ncl find the
      location of your libgfortran.so.1. See the last part of the
      instructions in #2.

Let me know if none of these help.

--Mary

On Thu, 9 Oct 2008, I-Lin Tang wrote:

> Dear Ladies and Gents,
>
> I have just trying to install NCL software onto a 64-bit linux system running
> RHEL5. Since it fulfills the requirement of using the binary distribution,
> the binary from the site was used. The installation was successful.
> However whenever I tried to run the 'ncl' command, the following error
> message proceeds:
>
> */usr/local/ncl/bin/ncl: error while loading shared libraries:
> libgfortran.so.1: cannot open shared object file: No such file or directory
>
> *By reading the 'Trouble shooting" part of the web, it shows:
>
> *Special note for Linux systems*
>
> *The default configuration file for Linux is "LINUX". You need to edit this
> file for i386, i686, and x86_64 systems. There are several LINUX./xxxx/
> sample configuration files to help you modify this file for your purpose.
> Also, see the "README" file in the "config" directory for more information. *
>
> *If you are using the "gcc" and "gfortran" compilers to build NCL, then you
> will need to include something like: *
>
> *#define CtoFLibraries -lgfortran
> *
>
> *in the $NCARG/config/LINUX file. You may also need to indicate the path to
> the gfortran library with the -L option: *
>
> *#define CtoFLibraries -L/usr/local/lib -lgfortran
> *
>
> *"/usr/local/lib" is just an example. You will need to find "libgfortran.so"
> or "libgfortran.a" on your system and use this path. *
>
> *If you are using "gcc" and "g95" to compile NCL, then you need to do the
> same thing, except use "-lf95" in place of "-lgfortran". Ditto for if you are
> using the Intel compilers "icc" and "ifort", you may need "-lifcore".
> *
>
> *
> *
>
> However, since I install with the binary distribution, I cannot find anywhere
> that has 'config' in my sub-directories. Could you please share some clue
> how I can go over this barrier on installation.
>
> Many thanks.
>
> ilt
>
> --
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * *
> * I-Lin Tang, System Administrator *
> * *
> * <E-Mail> ilt_at_pacific.jpl.nasa.gov 4800 Oak Grove Drive *
> * <Voice > (818)354-8169 Mail Stop 300 - 323 *
> * < Fax > (818)393-6720 Pasadena, CA 91109 *
> * *
> * *
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
>
>
_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Thu Oct 09 2008 - 17:20:26 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 10 2008 - 11:24:05 MDT