[ncl-install] (no subject)

Mary Haley haley at ucar.edu
Fri Jun 24 15:00:18 MDT 2011


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  
"libgfortran.so", 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  
easier!

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.

--Mary

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: mmittal at health.usf.edu
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20110624/433567e5/attachment.html 


More information about the ncl-install mailing list