[gradsusr] problem while installing the libpng after zlib
Huddleston, John
Huddleston at cira.colostate.edu
Tue Mar 8 08:41:39 EST 2011
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 [gradsusr-bounces at gradsusr.org] On Behalf Of muhammad hasan ali baig [mhasanbaig at gmail.com]
Sent: Tuesday, March 08, 2011 1:35 AM
To: gradsusr at gradsusr.org; 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-0003.html
More information about the gradsusr
mailing list