[gradsusr] problem while installing the libpng after zlib

muhammad hasan ali baig mhasanbaig at gmail.com
Tue Mar 8 03:35:37 EST 2011


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

  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
==================================================================
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110308/4fbb66ec/attachment-0003.html 


More information about the gradsusr mailing list