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">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>
        <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
        <title></title>
        <meta name="GENERATOR" content="OpenOffice.org 3.2 (Linux)">
        <style type="text/css">
        <!--
                @page { margin: 0.79in }
                P { margin-bottom: 0.08in }
        -->
        </style>
<p style="margin-bottom: 0in;"><font size="1">checking for zlibVersion in -lz... no</font></p><p style="margin-bottom: 0in;"><font size="1">configure: error: zlib not installed </font><br></p><p style="margin-bottom: 0in;">
While i had already installed zlib as shown from the following messages: <br></p><p style="margin-bottom: 0in;">
        <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
        <title></title>
        <meta name="GENERATOR" content="OpenOffice.org 3.2 (Linux)">
        <style type="text/css">
        <!--
                @page { margin: 0.79in }
                P { margin-bottom: 0.08in }
        -->
        </style>
</p><p style="margin-bottom: 0in;"><font size="1">[root@localhost zlib]# make
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o example.o
example.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o adler32.o
adler32.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o compress.o
compress.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o crc32.o
crc32.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o gzio.o
gzio.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o uncompr.o
uncompr.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o deflate.o
deflate.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o trees.o
trees.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o zutil.o
zutil.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o inflate.o
inflate.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o infback.o
infback.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o inftrees.o
inftrees.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o inffast.o
inffast.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">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
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -o example example.o
-L. libz.a
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -c -o minigzip.o
minigzip.c
</font></p>
<p style="margin-bottom: 0in;"><font size="1">gcc -O3 -DUSE_MMAP -o minigzip
minigzip.o -L. libz.a
</font></p>
<p style="margin-bottom: 0in;"><font size="1">[root@localhost zlib]# su
</font></p>
<p style="margin-bottom: 0in;"><font size="1">[root@localhost zlib]# make install
</font></p>
<p style="margin-bottom: 0in;"><font size="1">cp zlib.h zconf.h
/root/supplibs/src/zlib/include
</font></p>
<p style="margin-bottom: 0in;"><font size="1">chmod 644
/root/supplibs/src/zlib/include/zlib.h
/root/supplibs/src/zlib/include/zconf.h
</font></p>
<p style="margin-bottom: 0in;"><font size="1">cp libz.a /root/supplibs/src/zlib/lib
</font></p>
<p style="margin-bottom: 0in;"><font size="1">cd /root/supplibs/src/zlib/lib; chmod
755 libz.a
</font></p>
<p style="margin-bottom: 0in;"><font size="1">cd /root/supplibs/src/zlib/lib; if test
-f libz.so.1.2.3; then \
</font></p>
<p style="margin-bottom: 0in;"><font size="1">         rm -f libz.so libz.so.1; \
</font></p>
<p style="margin-bottom: 0in;"><font size="1">         ln -s libz.so.1.2.3 libz.so; \
</font></p>
<p style="margin-bottom: 0in;"><font size="1">         ln -s libz.so.1.2.3 libz.so.1; \
</font></p>
<p style="margin-bottom: 0in;"><font size="1">         (ldconfig || true) >/dev/null
2>&1; \
</font></p>
<p style="margin-bottom: 0in;"><font size="1">        fi
</font></p>
<p style="margin-bottom: 0in;"><font size="1">cp zlib.3
/root/supplibs/src/zlib/share/man/man3
</font></p>
<p style="margin-bottom: 0in;"><font size="1">chmod 644
/root/supplibs/src/zlib/share/man/man3/zlib.3
</font></p>
<p style="margin-bottom: 0in;"><font size="1">[root@localhost zlib]# cp ./lib/libz.a
$HOME/supplibs/lib
</font></p>
<p style="margin-bottom: 0in;"><font size="1">[root@localhost zlib]# mkdir
$HOME/supplibs/include/zlib
</font></p>
<p style="margin-bottom: 0in;"><font size="1">mkdir: cannot create directory
`/root/supplibs/include/zlib': No such file or directory
</font></p>
<p style="margin-bottom: 0in;"><font size="1">[root@localhost zlib]# pwd
</font></p>
<p style="margin-bottom: 0in;"><font size="1">/home/Hasan/supplibs/src/zlib
</font></p>
<p style="margin-bottom: 0in;"><font size="1">[root@localhost zlib]# mkdir
/home/Hasan/supplibs/include/zlib
</font></p>
<p style="margin-bottom: 0in;"><font size="1">mkdir: cannot create directory
`/home/Hasan/supplibs/include/zlib': File exists
</font></p>
<p style="margin-bottom: 0in;"><font size="1">[root@localhost zlib]# cp
./include/zlib.h $HOME/supplibs/include/zlib
</font></p>
<p style="margin-bottom: 0in;"><font size="1">cp: cannot create regular file
`/root/supplibs/include/zlib': No such file or directory
</font></p>
<p style="margin-bottom: 0in;"><font size="1">[root@localhost zlib]# cp
./include/zlib.h /home/Hasan/supplibs/include/zlib
</font></p>
<p style="margin-bottom: 0in;"><font size="1">cp: overwrite
`/home/Hasan/supplibs/include/zlib/zlib.h'? y
</font></p>
<p></p>
<br>Could you guide me how to resolve this problem?<br><br>Regards,<br><br>==================================================================<br><b>Muhammad Hasan Ali Baig,<br></b>
<p style="text-align: left; margin: 0in 0in 0pt;"><font size="3"><b><font face="Times New Roman">Key Laboratory of Meteorological Disaster of Ministry of Education</font><span style="font-family: SimSun;" lang="ZH-CN">,</span><font face="Times New Roman">Nanjing</font><span style="font-size: 14.5pt;"></span></b></font></p>
<p style="text-align: left; margin: 0in 0in 0pt;"><font face="Times New Roman"><font size="3"><b>University of Information Science & Technology<span>, Nanjing 210044, P. R. China</span></b></font></font></p><b>Mobile: +8615251705047<br>
==================================================================<br></b><br>