Litespeed PHP Build: Configure: Error: Wrong MySQL Library Version Or Lib Not Found

Another error I ran into while attempting to build PHP via the Litespeed Admin Console. This error directly related to the MySQL libraries or the MySQL version. Below is more information on the error itself and how the error was resolved. This error was resolved by simply installing a couple MySQL packages via the yum package manager as shown below.

Litespeed PHP Build Error: MySQL Version Or MySQL Libraries Missing

Right below is a quick snip from the Detailed Log available in the Litespeed Admin Console during the PHP Build.

text

checking for set_mysql_server_option in -lmysqlclient... no

configure: error: wrong mysql library version or lib not found. Check config.log for more information.

**ERROR** Could not configure PHP build

Litespeed PHP Build Error View Of Detailed Log:

I was able to get past this error in the Litespeed PHP build process by installing a couple MySQL packages via the yum package manager. I am pretty sure that simply installing mysql-devel would have solved the issue however I needed the other packages regardless so I installed them as well.

Install mysql-devel Via Yum Package Manager On CentOS Linux:

bash

[root@dev ~]# yum install mysql-server mysql-devel php-mysql

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* addons: mirrors.usc.edu

Excluding mirror: mirrors.bluehost.com

* base: mirrors.finalasp.com

* extras: mirrors.versaweb.com

* updates: centos-distro.cavecreek.net

Setting up Install Process

Resolving Dependencies

--&gt; Running transaction check

---&gt; Package mysql-devel.i386 0:5.0.77-4.el5_5.3 set to be updated

--&gt; Processing Dependency: openssl-devel for package: mysql-devel

---&gt; Package mysql-server.i386 0:5.0.77-4.el5_5.3 set to be updated