Differences
This shows you the differences between two versions of the page.
server-administration:building-php-with-mysql-on-centos-5-64bit [2010-02-08 23:02:07] garrett.plasky created |
server-administration:building-php-with-mysql-on-centos-5-64bit [2010-06-22 23:10:59] garrett.plasky |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Compiling PHP on CentOS 5 (64bit) with MySQL Support ====== | ====== Compiling PHP on CentOS 5 (64bit) with MySQL Support ====== | ||
- | If you try to build PHP 5.x.x on a 64bit CentOS install you may get this error: | + | Moved to the [[:apache:building-php-with-mysql-on-centos-5-64bit|new Apache category]]. |
- | + | ||
- | <code console> | + | |
- | checking for specified location of the MySQL UNIX socket... no | + | |
- | checking for MySQL UNIX socket location... / | + | |
- | 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. | + | |
- | </ | + | |
- | + | ||
- | Looking further into the config.log you will also see: | + | |
- | + | ||
- | <code console> | + | |
- | configure: | + | |
- | configure: | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | collect2: ld returned 1 exit status | + | |
- | </ | + | |
- | + | ||
- | First things first, if you installed MySQL using yum you should make sure that you have the mysql-devel rpms installed. | + | |
- | + | ||
- | <code console> | + | |
- | # yum install mysql-devel | + | |
- | </ | + | |
- | + | ||
- | Once you've ensured that the mysql-devel rpms are installed you need to tell PHP where it should also look for additional libraries. We will pass the following to the configure script: | + | |
- | + | ||
- | <code console> | + | |
- | # ./configure --with-libdir=lib64 --with-mysql | + | |
- | </ | + | |
- | + | ||
- | That's it, from there you can continue on with the normal build. | + | |
- | + | ||
- | {{tag> | + |