[gradsusr] problem while installing the libpng after zlib

Jennifer Adams jma at cola.iges.org
Tue Mar 8 18:56:25 EST 2011


On Mar 8, 2011, at 3:35 AM, muhammad hasan ali baig wrote:

> Hi dear fellows,
>                      I am using the GrADS version 2.0.a9 and I wish  
> to install supplemental libraries from http://iges.org/grads/gadoc/supplibs.html 
> . I followed each and every step as mentioned there.
> My laptop system supports i686 i686 i386 GNU/Linux.

Did you try using the i686 binaries distributed by COLA at http://iges.org/grads/downloads.html 
  ?

> I want to convert my data into GRIB2 format by using GrADS.

Creating GRIB2 files is not a feature in GrADS. Before you go to a lot  
of trouble, you might have a look at wgrib2 instead.


> 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:

Regarding building the supplibs, John Huddleston's message had some  
good advice. But be sure that is is 100% necessary before you continue.
--Jennifer

>
> checking for zlibVersion in -lz... no
> configure: error: zlib not installed
> While i had already installed zlib as shown from the following  
> messages:
>
> [root at localhost zlib]# make
> gcc -O3 -DUSE_MMAP -c -o example.o example.c
> gcc -O3 -DUSE_MMAP -c -o adler32.o adler32.c
> gcc -O3 -DUSE_MMAP -c -o compress.o compress.c
> gcc -O3 -DUSE_MMAP -c -o crc32.o crc32.c
> gcc -O3 -DUSE_MMAP -c -o gzio.o gzio.c
> gcc -O3 -DUSE_MMAP -c -o uncompr.o uncompr.c
> gcc -O3 -DUSE_MMAP -c -o deflate.o deflate.c
> gcc -O3 -DUSE_MMAP -c -o trees.o trees.c
> gcc -O3 -DUSE_MMAP -c -o zutil.o zutil.c
> gcc -O3 -DUSE_MMAP -c -o inflate.o inflate.c
> gcc -O3 -DUSE_MMAP -c -o infback.o infback.c
> gcc -O3 -DUSE_MMAP -c -o inftrees.o inftrees.c
> gcc -O3 -DUSE_MMAP -c -o inffast.o inffast.c
> 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
> gcc -O3 -DUSE_MMAP -o example example.o -L. libz.a
> gcc -O3 -DUSE_MMAP -c -o minigzip.o minigzip.c
> gcc -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.a
> [root at localhost zlib]# su
> [root at localhost zlib]# make install
> cp zlib.h zconf.h /root/supplibs/src/zlib/include
> chmod 644 /root/supplibs/src/zlib/include/zlib.h /root/supplibs/src/ 
> zlib/include/zconf.h
> cp libz.a /root/supplibs/src/zlib/lib
> cd /root/supplibs/src/zlib/lib; chmod 755 libz.a
> cd /root/supplibs/src/zlib/lib; if test -f libz.so.1.2.3; then \
> rm -f libz.so libz.so.1; \
> ln -s libz.so.1.2.3 libz.so; \
> ln -s libz.so.1.2.3 libz.so.1; \
> (ldconfig || true) >/dev/null 2>&1; \
> fi
> cp zlib.3 /root/supplibs/src/zlib/share/man/man3
> chmod 644 /root/supplibs/src/zlib/share/man/man3/zlib.3
> [root at localhost zlib]# cp ./lib/libz.a $HOME/supplibs/lib
> [root at localhost zlib]# mkdir $HOME/supplibs/include/zlib
> mkdir: cannot create directory `/root/supplibs/include/zlib': No  
> such file or directory
> [root at localhost zlib]# pwd
> /home/Hasan/supplibs/src/zlib
> [root at localhost zlib]# mkdir /home/Hasan/supplibs/include/zlib
> mkdir: cannot create directory `/home/Hasan/supplibs/include/zlib':  
> File exists
> [root at localhost zlib]# cp ./include/zlib.h $HOME/supplibs/include/zlib
> cp: cannot create regular file `/root/supplibs/include/zlib': No  
> such file or directory
> [root at localhost zlib]# cp ./include/zlib.h /home/Hasan/supplibs/ 
> include/zlib
> cp: overwrite `/home/Hasan/supplibs/include/zlib/zlib.h'? y
>
>
> Could you guide me how to resolve this problem?
>
> Regards,
>
> ==================================================================
> Muhammad Hasan Ali Baig,
> Key Laboratory of Meteorological Disaster of Ministry of  
> Education,Nanjing
> University of Information Science & Technology, Nanjing 210044, P.  
> R. China
> Mobile: +8615251705047
> ==================================================================
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110308/0633ac94/attachment-0003.html 


More information about the gradsusr mailing list