<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Muhammad<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Making the SUPPLIBS is not a trivial matter and the ZLIB is the first and easiest to build and install.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I recollect seeing an email from Jennifer asking if you had tried to install an OpenGrads </span><a href="http://sourceforge.net/projects/opengrads/files/">http://sourceforge.net/projects/opengrads/files/</a> or <span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>IGES <a href="http://www.iges.org/grads/downloads.html">http://www.iges.org/grads/downloads.html</a> package?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Can you use one of those packages?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John Huddleston<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cooperative Institute for Research in the Atmosphere<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> muhammad hasan ali baig [mailto:mhasanbaig@gmail.com] <br><b>Sent:</b> Monday, March 14, 2011 1:50 AM<br><b>To:</b> gradsusr@gradsusr.org; Huddleston, John<br><b>Subject:</b> problem while installing the libpng after zlib<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Dear Huddleston and other grads users,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I tried to follow the steps as mentioned by you but still the same error message occurred that 'zlib was not installed'. I am very worried how to tackle with this&nbsp; problem?<o:p></o:p></p><div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal><br><br>Message: 5<br>Date: Tue, 8 Mar 2011 05:41:39 -0800<br>From: &quot;Huddleston, John&quot; &lt;<a href="mailto:Huddleston@cira.colostate.edu">Huddleston@cira.colostate.edu</a>&gt;<br>Subject: Re: [gradsusr] problem while installing the libpng after zlib<br>To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>&gt;<br>Message-ID:<br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:F367071F539DC64FB75E7D7690B8160D013364F71C39@EXVMBX003-2.exch003intermedia.net">F367071F539DC64FB75E7D7690B8160D013364F71C39@EXVMBX003-2.exch003intermedia.net</a>&gt;<br><br>Content-Type: text/plain; charset=&quot;iso-2022-jp&quot;<br><br>Muhammad<br><br>It looks like you have two different installation directories: /home/Hasan/supplibs and /root/supplibs.<br><br>My suggestion is to use the --prefix option when you configure; then, when you do a 'make install' the binaries will go into the directory designated by the prefix. No hand copying is required.<br><br>As the Hasan user (not root) do the following<br>./configure --prefix=/home/Hasan/supplibs<br>make<br>make install<br><br>for the other packages they will require LIBS to be set to the find your libraries; and, for grads it will require the SUPPLIBS to be set to the directory where the supplibs are located.<br><br>John Huddleston<br>Cooperative Institute for Research in the Atmosphere<br><br>________________________________<br>From: <a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org">gradsusr-bounces@gradsusr.org</a>] On Behalf Of muhammad hasan ali baig [<a href="mailto:mhasanbaig@gmail.com">mhasanbaig@gmail.com</a>]<br>Sent: Tuesday, March 08, 2011 1:35 AM<br>To: <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>; <a href="mailto:arlindo.dasilva@gmail.com">arlindo.dasilva@gmail.com</a><br>Subject: [gradsusr] problem while installing the libpng after zlib<br><br>Hi dear fellows,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I am using the GrADS version 2.0.a9 and I wish to install supplemental libraries from <a href="http://iges.org/grads/gadoc/supplibs.html" target="_blank">http://iges.org/grads/gadoc/supplibs.html</a>. I followed each and every step as mentioned there.<br>My laptop system supports i686 i686 i386 GNU/Linux. I want to convert my data into GRIB2 format by using GrADS. For this purpose, i want to use g2clib 1.1.8. Before installing it, it is necessary to install some other libs like zlib and libpng. I successfully installed the zlib but when i tried to install libpng following eror message occurred:<br><br><br>checking for zlibVersion in -lz... no<br><br>configure: error: zlib not installed<br><br>While i had already installed zlib as shown from the following messages:<br><br>[root@localhost zlib]# make<br><br>gcc -O3 -DUSE_MMAP -c -o example.o example.c<br><br>gcc -O3 -DUSE_MMAP -c -o adler32.o adler32.c<br><br>gcc -O3 -DUSE_MMAP -c -o compress.o compress.c<br><br>gcc -O3 -DUSE_MMAP -c -o crc32.o crc32.c<br><br>gcc -O3 -DUSE_MMAP -c -o gzio.o gzio.c<br><br>gcc -O3 -DUSE_MMAP -c -o uncompr.o uncompr.c<br><br>gcc -O3 -DUSE_MMAP -c -o deflate.o deflate.c<br><br>gcc -O3 -DUSE_MMAP -c -o trees.o trees.c<br><br>gcc -O3 -DUSE_MMAP -c -o zutil.o zutil.c<br><br>gcc -O3 -DUSE_MMAP -c -o inflate.o inflate.c<br><br>gcc -O3 -DUSE_MMAP -c -o infback.o infback.c<br><br>gcc -O3 -DUSE_MMAP -c -o inftrees.o inftrees.c<br><br>gcc -O3 -DUSE_MMAP -c -o inffast.o inffast.c<br><br>ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o<br><br>gcc -O3 -DUSE_MMAP -o example example.o -L. libz.a<br><br>gcc -O3 -DUSE_MMAP -c -o minigzip.o minigzip.c<br><br>gcc -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.a<br><br>[root@localhost zlib]# su<br><br>[root@localhost zlib]# make install<br><br>cp zlib.h zconf.h /root/supplibs/src/zlib/include<br><br>chmod 644 /root/supplibs/src/zlib/include/zlib.h /root/supplibs/src/zlib/include/zconf.h<br><br>cp libz.a /root/supplibs/src/zlib/lib<br><br>cd /root/supplibs/src/zlib/lib; chmod 755 libz.a<br><br>cd /root/supplibs/src/zlib/lib; if test -f libz.so.1.2.3; then \<br><br>rm -f libz.so libz.so.1; \<br><br>ln -s libz.so.1.2.3 libz.so; \<br><br>ln -s libz.so.1.2.3 libz.so.1; \<br><br>(ldconfig || true) &gt;/dev/null 2&gt;&amp;1; \<br><br>fi<br><br>cp zlib.3 /root/supplibs/src/zlib/share/man/man3<br><br>chmod 644 /root/supplibs/src/zlib/share/man/man3/zlib.3<br><br>[root@localhost zlib]# cp ./lib/libz.a $HOME/supplibs/lib<br><br>[root@localhost zlib]# mkdir $HOME/supplibs/include/zlib<br><br>mkdir: cannot create directory `/root/supplibs/include/zlib': No such file or directory<br><br>[root@localhost zlib]# pwd<br><br>/home/Hasan/supplibs/src/zlib<br><br>[root@localhost zlib]# mkdir /home/Hasan/supplibs/include/zlib<br><br>mkdir: cannot create directory `/home/Hasan/supplibs/include/zlib': File exists<br><br>[root@localhost zlib]# cp ./include/zlib.h $HOME/supplibs/include/zlib<br><br>cp: cannot create regular file `/root/supplibs/include/zlib': No such file or directory<br><br>[root@localhost zlib]# cp ./include/zlib.h /home/Hasan/supplibs/include/zlib<br><br>cp: overwrite `/home/Hasan/supplibs/include/zlib/zlib.h'? y<br><br>Could you guide me how to resolve this problem?<br><br>Regards,<br><br>==================================================================<br>Muhammad Hasan Ali Baig,<br><br>Key Laboratory of Meteorological Disaster of Ministry of Education?Nanjing<br><br>University of Information Science &amp; Technology, Nanjing 210044, P. R. China<br><br>Mobile: +8615251705047<br>==================================================================<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20110308/4350fa38/attachment.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20110308/4350fa38/attachment.html</a><br><br>------------------------------<br><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br><br><br>End of gradsusr Digest, Vol 13, Issue 21<br>****************************************<o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>