Discussion:
[PHP-INSTALL] Building 5.2.12 w/MySQL on RedHat 64bit
Rob Tanner
2010-02-23 22:19:04 UTC
Permalink
Hi,

I am trying to build PHP 5.2.12 on RHEL ES5 (the latest and greatest Redhat)
64bit. Why do I want to build PHP when Redhat includes PHP? The distro
includes PHP 5.1.6 and our CMS (ModX) doesn¹t get along with 5.1.6 because
of errors in the PDO layer.

Now that I¹ve gotten that off my chest, when I run the configure, I get the
error:

checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!

The libmysqlclient libs are in /usr/lib64 and not /usr/lib (which contains
32 bit libs).

I have tried simply ‹with-mysql, ‹with-mysql=/usr/lib64 and
‹with-mysql=/usr/lib64/mysql. Any idea how to successfully tell configure
where to look?

Thanks,
Rob



Rob Tanner
UNIX Services Manager
Linfield College, McMinnville Oregon
Rasmus Lerdorf
2010-02-23 22:21:54 UTC
Permalink
Where are the header files? If you don't have the libs and headers
under a single top dir, then you will have to munge the
ext/mysql/config.m4 file to fix the check. Or symlink appropriately.

-Rasmus
Post by Rob Tanner
Hi,
I am trying to build PHP 5.2.12 on RHEL ES5 (the latest and greatest
Redhat) 64bit. Why do I want to build PHP when Redhat includes PHP?
The distro includes PHP 5.1.6 and our CMS (ModX) doesn’t get along with
5.1.6 because of errors in the PDO layer.
Now that I’ve gotten that off my chest, when I run the configure, I get
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
The libmysqlclient libs are in /usr/lib64 and not /usr/lib (which
contains 32 bit libs).
I have tried simply —with-mysql, —with-mysql=/usr/lib64 and
—with-mysql=/usr/lib64/mysql. Any idea how to successfully tell
configure where to look?
Thanks,
Rob
*Rob Tanner
*UNIX Services Manager
Linfield College, McMinnville Oregon
Rob Tanner
2010-02-23 22:28:01 UTC
Permalink
Header files are in /usr/include/mysql and the libraries are in
/usr/lib64/mysql

- Rob
Post by Rasmus Lerdorf
Where are the header files? If you don't have the libs and headers
under a single top dir, then you will have to munge the
ext/mysql/config.m4 file to fix the check. Or symlink appropriately.
-Rasmus
Post by Rob Tanner
Hi,
I am trying to build PHP 5.2.12 on RHEL ES5 (the latest and greatest
Redhat) 64bit. Why do I want to build PHP when Redhat includes PHP?
The distro includes PHP 5.1.6 and our CMS (ModX) doesn¹t get along with
5.1.6 because of errors in the PDO layer.
Now that I¹ve gotten that off my chest, when I run the configure, I get
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
The libmysqlclient libs are in /usr/lib64 and not /usr/lib (which
contains 32 bit libs).
I have tried simply ‹with-mysql, ‹with-mysql=/usr/lib64 and
‹with-mysql=/usr/lib64/mysql. Any idea how to successfully tell
configure where to look?
Thanks,
Rob
*Rob Tanner
*UNIX Services Manager
Linfield College, McMinnville Oregon
Rasmus Lerdorf
2010-02-23 22:29:16 UTC
Permalink
Post by Rob Tanner
Header files are in /usr/include/mysql and the libraries are in
/usr/lib64/mysql
Yeah, that won't work. --with-mysql expects to see both under the same
top dir. You'll have to symlink it.

-Rasmus

Loading...