Connecting Tech Pros Worldwide Forums | Help | Site Map

Failed to 'configure' when installing PHP

ibm_97@yahoo.com
Guest
 
Posts: n/a
#1: Aug 26 '05
Hi all,

Red Hat Advanced Server 3.0
Apache 2.0.54
PHP 5.0.4
MySql 4

When I tried to 'configure' with MySql support, it failed:

#./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql

Apache location is correct, basedir of MySql is also right (it's up and
running right now)

The last few lines are:

checking for MySQL support... yes
checking for mysql_close in -lmysqlclient... no
checking for mysql_errno in -lmysqlclient... no
configure: error: Try adding --with-zlib-dir=<DIR>. Please check
config.log for more information.


Any ideas?

Thanks!


Carl
Guest
 
Posts: n/a
#2: Aug 26 '05

re: Failed to 'configure' when installing PHP


ibm_97@yahoo.com wrote:[color=blue]
> Hi all,
>
> Red Hat Advanced Server 3.0
> Apache 2.0.54
> PHP 5.0.4
> MySql 4
>
> When I tried to 'configure' with MySql support, it failed:
>
> #./configure --with-apxs2=/usr/local/apache2/bin/apxs
> --with-mysql=/usr/local/mysql
>
> Apache location is correct, basedir of MySql is also right (it's up and
> running right now)
>
> The last few lines are:
>
> checking for MySQL support... yes
> checking for mysql_close in -lmysqlclient... no
> checking for mysql_errno in -lmysqlclient... no
> configure: error: Try adding --with-zlib-dir=<DIR>. Please check
> config.log for more information.
>
>
> Any ideas?
>
> Thanks!
>[/color]

Your configure is failing when checking for zlib, not mysql. You may
want to look for the zlib & zlib-devel packages.

Carl.
ibm_97@yahoo.com
Guest
 
Posts: n/a
#3: Aug 26 '05

re: Failed to 'configure' when installing PHP


"You may
want to look for the zlib & zlib-devel packages. "

Thanks.

# rpm -qa|grep zlib
zlib-1.1.4-8.1
zlib-devel-1.1.4-8.1

ibm_97@yahoo.com
Guest
 
Posts: n/a
#4: Aug 26 '05

re: Failed to 'configure' when installing PHP


"# rpm -qa|grep zlib
zlib-1.1.4-8.1
zlib-devel-1.1.4-8.1"

I mean it still doesn't work, and I already have zlib/zlib-dev.

ibm_97@yahoo.com
Guest
 
Posts: n/a
#5: Aug 26 '05

re: Failed to 'configure' when installing PHP


" configure: error: Try adding --with-zlib-dir=<DIR>. Please check
config.log for more information. "

I want to add this '--with-zlib-dir' option to give a try. But, where
is 'zlib' located and how can I find out?

Thanks.

ZeldorBlat
Guest
 
Posts: n/a
#6: Aug 26 '05

re: Failed to 'configure' when installing PHP


locate zlib

ibm_97@yahoo.com
Guest
 
Posts: n/a
#7: Aug 26 '05

re: Failed to 'configure' when installing PHP



"locate zlib"

# locate zlib
/usr/X11R6/include/X11/extensions/lbxzlib.h
/usr/share/doc/zlib-1.1.4
/usr/share/doc/zlib-1.1.4/README
/usr/share/doc/zlib-devel-1.1.4
/usr/share/doc/zlib-devel-1.1.4/algorithm.txt
/usr/share/doc/zlib-devel-1.1.4/ChangeLog
/usr/share/doc/zlib-devel-1.1.4/example.c
/usr/share/doc/zlib-devel-1.1.4/minigzip.c
/usr/share/man/man3/zlib.3.gz
/usr/include/bzlib.h
/usr/include/zlib.h
/usr/lib/python2.2/lib-dynload/zlibmodule.so
/usr/lib/python2.2/test/output/test_zlib
/usr/lib/python2.2/test/test_zlib.py
/usr/lib/python2.2/encodings/zlib_codec.py
/usr/lib/python2.2/encodings/zlib_codec.pyc
/usr/lib/python2.2/encodings/zlib_codec.pyo
/usr/lib/openoffice/program/python-core-2.2.2/lib/encodings/zlib_codec.py
/usr/lib/openoffice/program/python-core-2.2.2/lib/lib-dynload/zlib.so
/usr/src/linux-2.4.21-4.EL/arch/ppc/boot/include/zlib.h
/usr/src/linux-2.4.21-4.EL/arch/ppc/boot/lib/zlib.c
/usr/src/linux-2.4.21-4.EL/arch/ppc64/boot/zlib.c
/usr/src/linux-2.4.21-4.EL/arch/ppc64/boot/zlib.h
/usr/src/linux-2.4.21-4.EL/fs/jffs2/compr_zlib.c
/usr/src/linux-2.4.21-4.EL/include/linux/zlib.h
/usr/src/linux-2.4.21-4.EL/lib/zlib_deflate
/usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/Makefile
/usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/.depend
/usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/deflate_syms.c
/usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/deflate.c
/usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/deftree.c
/usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/defutil.h
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/Makefile
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/.depend
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inflate_syms.c
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infblock.c
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infblock.h
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infcodes.c
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infcodes.h
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inffast.c
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inffast.h
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inffixed.h
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inflate.c
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inftrees.c
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inftrees.h
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infutil.c
/usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infutil.h

Now I use zlib-dir = /usr/include (right?) option:

#./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql --with-zlib-dir=/usr/include

The end of screen output is:

checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for
more information.


Red Hat + Apache2 + PHP + MySql is common combination, I guess. Why is
it so diffiicult to make it work?

Any ideas? Thanks!

Jerry Stuckle
Guest
 
Posts: n/a
#8: Aug 26 '05

re: Failed to 'configure' when installing PHP


ibm_97@yahoo.com wrote:[color=blue]
> "locate zlib"
>
> # locate zlib
> /usr/X11R6/include/X11/extensions/lbxzlib.h
> /usr/share/doc/zlib-1.1.4
> /usr/share/doc/zlib-1.1.4/README
> /usr/share/doc/zlib-devel-1.1.4
> /usr/share/doc/zlib-devel-1.1.4/algorithm.txt
> /usr/share/doc/zlib-devel-1.1.4/ChangeLog
> /usr/share/doc/zlib-devel-1.1.4/example.c
> /usr/share/doc/zlib-devel-1.1.4/minigzip.c
> /usr/share/man/man3/zlib.3.gz
> /usr/include/bzlib.h
> /usr/include/zlib.h
> /usr/lib/python2.2/lib-dynload/zlibmodule.so
> /usr/lib/python2.2/test/output/test_zlib
> /usr/lib/python2.2/test/test_zlib.py
> /usr/lib/python2.2/encodings/zlib_codec.py
> /usr/lib/python2.2/encodings/zlib_codec.pyc
> /usr/lib/python2.2/encodings/zlib_codec.pyo
> /usr/lib/openoffice/program/python-core-2.2.2/lib/encodings/zlib_codec.py
> /usr/lib/openoffice/program/python-core-2.2.2/lib/lib-dynload/zlib.so
> /usr/src/linux-2.4.21-4.EL/arch/ppc/boot/include/zlib.h
> /usr/src/linux-2.4.21-4.EL/arch/ppc/boot/lib/zlib.c
> /usr/src/linux-2.4.21-4.EL/arch/ppc64/boot/zlib.c
> /usr/src/linux-2.4.21-4.EL/arch/ppc64/boot/zlib.h
> /usr/src/linux-2.4.21-4.EL/fs/jffs2/compr_zlib.c
> /usr/src/linux-2.4.21-4.EL/include/linux/zlib.h
> /usr/src/linux-2.4.21-4.EL/lib/zlib_deflate
> /usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/Makefile
> /usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/.depend
> /usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/deflate_syms.c
> /usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/deflate.c
> /usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/deftree.c
> /usr/src/linux-2.4.21-4.EL/lib/zlib_deflate/defutil.h
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/Makefile
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/.depend
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inflate_syms.c
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infblock.c
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infblock.h
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infcodes.c
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infcodes.h
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inffast.c
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inffast.h
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inffixed.h
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inflate.c
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inftrees.c
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/inftrees.h
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infutil.c
> /usr/src/linux-2.4.21-4.EL/lib/zlib_inflate/infutil.h
>
> Now I use zlib-dir = /usr/include (right?) option:
>
> #./configure --with-apxs2=/usr/local/apache2/bin/apxs
> --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/include
>
> The end of screen output is:
>
> checking for MySQL support... yes
> checking for specified location of the MySQL UNIX socket... no
> checking for MySQL UNIX socket location... no
> checking for mysql_close in -lmysqlclient... no
> checking for mysql_error in -lmysqlclient... no
> configure: error: mysql configure failed. Please check config.log for
> more information.
>
>
> Red Hat + Apache2 + PHP + MySql is common combination, I guess. Why is
> it so diffiicult to make it work?
>
> Any ideas? Thanks!
>[/color]

PMJI,

Try zlib-dir=/usr. The routine should automatically add the /include directory
to get to the header files.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
ibm_97@yahoo.com
Guest
 
Posts: n/a
#9: Aug 29 '05

re: Failed to 'configure' when installing PHP


"Try zlib-dir=/usr. The routine should automatically add the /include
directory
to get to the header files."


Same error:

checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for
more information.

Thanks!

ibm_97@yahoo.com
Guest
 
Posts: n/a
#10: Aug 29 '05

re: Failed to 'configure' when installing PHP


Fix the problem.
I have to install MySQL-devel.rpm. php.net should really address this
requirement.

Closed Thread