Re: (no subject)

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Jun 24 2011 - 15:00:18 MDT

Hi Moti,

You should be able to use your own compile to compiler and link and
NCAR Graphics program, but there are probably some gfortran
dependencies, and thus you will need to link in "-lgfortran".

You have the compile line that was echoed from running "ncargex
cpex08", so try taking that compile line, adding your own compiler,
and adding -lgfortran at the end:

       pgfortran -fPIC -fno-second-underscore -O -o cpex08 cpexcc.f
cpex08.f -L/usr/local/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -
lncarg_c -lX11 -lXext

This is probably not going to work on the first try, though, because
"gfortran" doesn't appear to be installed on your system. Hence
"", which is what "-lgfortran" is going to cause your
compiler to look for, is probably not available either.

You have two choices from here: you can try to install the same
version of gfortran that was used to build this binary (gfortran
4.1.2), or you can build NCAR Graphics/NCL from scratch yourself from
the source code, using your own compilers. The former choice is much

If you only plan to use NCL, and not write your own NCAR Graphics
programs, then really, it's not important that you get this stuff to
work. "ncl" should work just fine on your system as is.


On Jun 24, 2011, at 12:35 PM, Mittal, Moti wrote:

> I am trying to install ncl 6.00 using the binary
> ncl_ncarg-6.0.0-beta.Linux_RedHat_x86_64_nodap_gcc412.tar
> on my Linux 86-64 machine.
> When I try to execute
> ncargex cpex08 -clean
> NCAR Graphics Fortran Example <cpex08>
> Copying cpex08.f
> Copying cpexcc.f
> Compiling and linking...
> gfortran -fPIC -fno-second-underscore -O -o cpex08 cpexcc.f cpex08.f
> -L/usr/local/lib -L/usr/X11R6/lib64 -lncarg -lncarg_gks -lncarg_c -
> lX11 -lXext
> gfortran: Command not found.
> The compile and link failed.
> Is it important to have gfortran? We use pgfortran.
> Thank you for your help and suggestion.
> Moti
> Professor, Department of Environment and Occupational Health
> College of Public Health
> University of South Florida
> 13201 Bruce B. Downs Blvd., MDC56
> Tampa, Fl 33612-3805
> Tel: (813) 974-9571
> Fax: (813) 974-4986
> Email:
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:

ncl-install mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Jun 24 15:00:25 2011

This archive was generated by hypermail 2.1.8 : Thu Jun 30 2011 - 12:54:57 MDT