[gradsusr] problem while installing the libpng after zlib

Huddleston, John Huddleston at cira.colostate.edu
Mon Mar 14 10:53:51 EDT 2011


Muhammad

Making the SUPPLIBS is not a trivial matter and the ZLIB is the first and easiest to build and install.

I recollect seeing an email from Jennifer asking if you had tried to install an OpenGrads http://sourceforge.net/projects/opengrads/files/ or IGES http://www.iges.org/grads/downloads.html package?

Can you use one of those packages?

John Huddleston
Cooperative Institute for Research in the Atmosphere



From: muhammad hasan ali baig [mailto:mhasanbaig at gmail.com]
Sent: Monday, March 14, 2011 1:50 AM
To: gradsusr at gradsusr.org; Huddleston, John
Subject: problem while installing the libpng after zlib

Dear Huddleston and other grads users,
                        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  problem?


Message: 5
Date: Tue, 8 Mar 2011 05:41:39 -0800
From: "Huddleston, John" <Huddleston at cira.colostate.edu<mailto:Huddleston at cira.colostate.edu>>
Subject: Re: [gradsusr] problem while installing the libpng after zlib
To: GrADS Users Forum <gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>>
Message-ID:
       <F367071F539DC64FB75E7D7690B8160D013364F71C39 at EXVMBX003-2.exch003intermedia.net<mailto:F367071F539DC64FB75E7D7690B8160D013364F71C39 at EXVMBX003-2.exch003intermedia.net>>

Content-Type: text/plain; charset="iso-2022-jp"

Muhammad

It looks like you have two different installation directories: /home/Hasan/supplibs and /root/supplibs.

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.

As the Hasan user (not root) do the following
./configure --prefix=/home/Hasan/supplibs
make
make install

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.

John Huddleston
Cooperative Institute for Research in the Atmosphere

________________________________
From: gradsusr-bounces at gradsusr.org<mailto:gradsusr-bounces at gradsusr.org> [gradsusr-bounces at gradsusr.org<mailto:gradsusr-bounces at gradsusr.org>] On Behalf Of muhammad hasan ali baig [mhasanbaig at gmail.com<mailto:mhasanbaig at gmail.com>]
Sent: Tuesday, March 08, 2011 1:35 AM
To: gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>; arlindo.dasilva at gmail.com<mailto:arlindo.dasilva at gmail.com>
Subject: [gradsusr] problem while installing the libpng after zlib

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/4350fa38/attachment.html

------------------------------

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr


End of gradsusr Digest, Vol 13, Issue 21
****************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110314/f5339d8a/attachment-0003.html 


More information about the gradsusr mailing list