[ncl-install] Problems with installation

Mary Haley haley at ucar.edu
Fri Oct 1 09:11:21 MDT 2010


The precompiled NCAR Graphics libraries contain PNG support, so you need to have libpng installed on your system.

You might already have libpng on your system:

 locate libpng

If you find something, you'll need to include a -L option on your NCAR Graphics compile line that points to the location of the libpng file (it might be called libpng.a or libpng.so or something similar).

The instructions can be found here for building PNG from source code:

http://www.ncl.ucar.edu/Download/build_from_src.shtml#PNG

You might also be able to install libpng from an Ubuntu site. Try googling "Ubuntu libpng".

--Mary


On Sep 30, 2010, at 12:11 PM, Jose Villalobos-Enciso wrote:

> Hi,
> 
> I am using Linux 2.6.31-22-generic #65-Ubuntu SMP Thu Sep 16 15:48:58 UTC 2010 i686 GNU/Linux
> 
> I have installed NCAR Command Language Version 5.1.1. When testing the installation the following appears:
> 
> carlos at carlos-laptop:~$ ncargex cpex08 
> 
> NCAR Graphics Fortran  Example <cpex08>
> 
>  Copying cpex08.f
> 
>  Copying cpexcc.f
> 
> Compiling and linking...
> gfortran -fPIC -fno-second-underscore -fno-range-check -o cpex08 cpexcc.f cpex08.f -L/usr/local/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz
> /usr/bin/ld: cannot find -lpng
> collect2: ld returned 1 exit status
> 
> The compile and link failed.
> 
> Could you please help me?
> 
> Thanks in advance,
> 
> Jose
> _______________________________________________
> 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/20101001/db50580c/attachment.html 


More information about the ncl-install mailing list