473,394 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Failed to 'configure' when installing PHP

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!

Aug 26 '05 #1
9 2359
ib****@yahoo.com wrote:
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!


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

Carl.
Aug 26 '05 #2
"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

Aug 26 '05 #3
"# 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.

Aug 26 '05 #4
" 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.

Aug 26 '05 #5
locate zlib

Aug 26 '05 #6

"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!

Aug 26 '05 #7
ib****@yahoo.com wrote:
"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!


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.
js*******@attglobal.net
==================
Aug 26 '05 #8
"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!

Aug 29 '05 #9
Fix the problem.
I have to install MySQL-devel.rpm. php.net should really address this
requirement.

Aug 29 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brent L Johnson | last post by:
I'm running Redhat9 and I want to install Python2.3. I downloaded the src RPM file and following the directions (i.e. rpmbuild --rebuild python2.3-2.3.3-2pydotorg.src.rpm). This runs configure,...
0
by: Christopher De Vries | last post by:
The predominant operating system in my workplace is Solaris, with a bit of Linux and MacOS X thrown in. As such people expect to install new software with the sequence: ../configure make make...
5
by: anthonymelillo | last post by:
I have a windows 2003 server and would like to create ASP.Net applications on it but I do not know the properly security,permissions or configuration to setup the server properly. I installed...
14
by: david | last post by:
I have developed web forms including login by using ASP.NET via HTTP. Now I want to secure the connection from client to the server via HTTPS. How can I configure the server or something else to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.