<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The precompiled NCAR Graphics libraries contain PNG support, so you need to have libpng installed on your system.<div><br></div><div>You might already have libpng on your system:</div><div><br></div><div>&nbsp;locate libpng</div><div><br></div><div>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).</div><div><br></div><div>The instructions can be found here for building PNG from source code:</div><div><br></div><div><a href="http://www.ncl.ucar.edu/Download/build_from_src.shtml#PNG">http://www.ncl.ucar.edu/Download/build_from_src.shtml#PNG</a></div><div><br></div><div>You might also be able to install libpng from an Ubuntu site. Try googling "Ubuntu libpng".</div><div><br></div><div>--Mary</div><div><br></div><div><br><div><div>On Sep 30, 2010, at 12:11 PM, Jose Villalobos-Enciso wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="color: rgb(0, 0, 153);">Hi,</span><br style="color: rgb(0, 0, 153);"><br><span style="color: rgb(0, 0, 153);">I am using Linux 2.6.31-22-generic #65-Ubuntu SMP Thu Sep 16 15:48:58 UTC 2010 i686 GNU/Linux</span><br style="color: rgb(51, 102, 255);">

<br><span style="color: rgb(0, 0, 153);">I have installed NCAR Command Language Version 5.1.1. When testing the installation the following appears:</span><br style="color: rgb(0, 0, 153);">
<br>carlos@carlos-laptop:~$ ncargex cpex08 <br><br>NCAR Graphics Fortran &nbsp;Example &lt;cpex08&gt;<br><br> &nbsp;Copying cpex08.f<br><br> &nbsp;Copying cpexcc.f<br><br>Compiling and linking...<br>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<br>
/usr/bin/ld: cannot find -lpng<br>collect2: ld returned 1 exit status<br><br>The compile and link failed.<br><br><span style="color: rgb(51, 51, 153);">Could you please help me?</span><br style="color: rgb(51, 51, 153);">

<br style="color: rgb(51, 51, 153);"><span style="color: rgb(51, 51, 153);">Thanks in advance,</span><br style="color: rgb(51, 51, 153);"><br style="color: rgb(51, 51, 153);"><span style="color: rgb(51, 51, 153);">Jose</span><br>

_______________________________________________<br>ncl-install mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br></blockquote></div><br></div></body></html>