LaylaNahar
Programmer
Hello,
I am using Centos 5.2 and following these instructions to build RRDTool
(
The command :
env CFLAGS="-O3 -fPIC" ./configure --prefix=$INSTALL_DIR
run from the libpng-1.2.18 directory always ends in the failure:
checking for zlibVersion in -lz... no
configure: error: zlib not installed
I'm wondering if someone can tell me what to do to allow the libpng-1.2.18 configure process to find the zlib material it needs. I have set up my build environment as shown below.
Thank you very much.
[root@localhost ~]# ls $BUILD_DIR
cairo-1.6.4 libpng-1.2.18.tar.gz pkg-config-0.23
rrdtool-1.4.5.tar.gz
cairo-1.6.4.tar.gz pixman-0.10.0 pkg-config-0.23.tar.gz zlib-1.2.3
libpng-1.2.18 pixman-0.10.0.tar.gz rrdtool-1.4.5
zlib-1.2.3.tar.gz
[root@localhost ~]# echo $INSTALL_DIR
/opt/rrdtool-1.4.5
[root@localhost ~]# ls $INSTALL_DIR/include
zconf.h zlib.h
[root@localhost ~]# ls $INSTALL_DIR/lib
libz.a libz.so libz.so.1 libz.so.1.2.3
[root@localhost ~]# echo $PATH
/opt/rrdtool-1.4.5/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/rrdtool-1.4.5:/opt/rrdtool-1.4.5/lib:/opt/rrdtool-1.4.5/include
[root@localhost ~]# echo $PKG_CONFIG
/opt/rrdtool-1.4.5/bin/pkg-config:/opt/rrdtool-1.4.5/include
I am using Centos 5.2 and following these instructions to build RRDTool
(
The command :
env CFLAGS="-O3 -fPIC" ./configure --prefix=$INSTALL_DIR
run from the libpng-1.2.18 directory always ends in the failure:
checking for zlibVersion in -lz... no
configure: error: zlib not installed
I'm wondering if someone can tell me what to do to allow the libpng-1.2.18 configure process to find the zlib material it needs. I have set up my build environment as shown below.
Thank you very much.
[root@localhost ~]# ls $BUILD_DIR
cairo-1.6.4 libpng-1.2.18.tar.gz pkg-config-0.23
rrdtool-1.4.5.tar.gz
cairo-1.6.4.tar.gz pixman-0.10.0 pkg-config-0.23.tar.gz zlib-1.2.3
libpng-1.2.18 pixman-0.10.0.tar.gz rrdtool-1.4.5
zlib-1.2.3.tar.gz
[root@localhost ~]# echo $INSTALL_DIR
/opt/rrdtool-1.4.5
[root@localhost ~]# ls $INSTALL_DIR/include
zconf.h zlib.h
[root@localhost ~]# ls $INSTALL_DIR/lib
libz.a libz.so libz.so.1 libz.so.1.2.3
[root@localhost ~]# echo $PATH
/opt/rrdtool-1.4.5/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/rrdtool-1.4.5:/opt/rrdtool-1.4.5/lib:/opt/rrdtool-1.4.5/include
[root@localhost ~]# echo $PKG_CONFIG
/opt/rrdtool-1.4.5/bin/pkg-config:/opt/rrdtool-1.4.5/include