469,282 Members | 2,021 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

PHP wants "mysql_config" for configure, but this is not on system

Hello gurus of the internet-

I'm trying to install PHP on a system with MySQL I've had success using
MySQL which was installed via "yum install mysql" on my CentOS 4.3
system.

My problem is that I'd really like to use Mysql5, but when I install it
via MySQL-client-standard-5.0.26-0.rhel4.i386.rpm and
MySQL-server-standard-5.0.26-0.rhel4.i386.rpm, there doesn't appear to
be a "mysql_config" file installed anywhere on the system. This file is
referenced during my PHP install instructions for running the configure
command prior to compiling as:

./configure --prefix=/usr/local/php
--with-mysqli=/usr/local/bin/mysql_config
--with-apxs2=/usr/local/apache2/bin/apxs

The 'mysql_config' file that is referenced as the argument to the
--with-mysqli option was present in that location when using MySQL4,
but doesn't show up with "find / -name 'mysql_config'".

The MySQL5 install does appear to be working and running.

Any thoughts?

Thanks for any help,
Eric

Oct 26 '06 #1
1 3627

I figured it out. I needed to download the "devel" rpm as well.

On Oct 26, 11:33 am, "Eric West" <pumpkinheadgi...@gmail.comwrote:
Hello gurus of the internet-

I'm trying to install PHP on a system with MySQL I've had success using
MySQL which was installed via "yum install mysql" on my CentOS 4.3
system.

My problem is that I'd really like to use Mysql5, but when I install it
via MySQL-client-standard-5.0.26-0.rhel4.i386.rpm and
MySQL-server-standard-5.0.26-0.rhel4.i386.rpm, there doesn't appear to
be a "mysql_config" file installed anywhere on the system. This file is
referenced during my PHP install instructions for running the configure
command prior to compiling as:

./configure --prefix=/usr/local/php
--with-mysqli=/usr/local/bin/mysql_config
--with-apxs2=/usr/local/apache2/bin/apxs

The 'mysql_config' file that is referenced as the argument to the
--with-mysqli option was present in that location when using MySQL4,
but doesn't show up with "find / -name 'mysql_config'".

The MySQL5 install does appear to be working and running.

Any thoughts?

Thanks for any help,
Eric
Oct 26 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.