Dear Huddleston and other grads users,<br>                        I tried to follow the steps as mentioned by you but still the same error message occurred that &#39;zlib was not installed&#39;. I am very worried how to tackle with this  problem?<br>

<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><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>
        &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 &#39;make install&#39; 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>
                     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&#39;: 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&#39;: 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&#39;: 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&#39;? 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>
****************************************<br>
</blockquote></div><br>