Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm likely not thinking of some information that may be relevant, but here's pretty much what I've been trying to sort out.

I (unfortunately) am in charge of a server infested with cPanel. For various reasons I've been attempting to get the mysqlnd driver compiled into PHP. The current setup on the server is WHM/cPanel, Apache 2.2, PHP 5.4, and MySQL 5.1 on centos 5.8 x64.

As I understand it I should be able to do this through EasyApache. At least according to this: http://docs.cpanel.net/twiki/bin/view/EasyApache3/CustomConfigureFlags

However trying to add the extra flags for PHP results in these complaints.

./configure: line 61087: test: mysqlnd: binary operator expected
./configure: line 61091: test: mysqlnd: binary operator expected
configure: error: Cannot find MySQL header files under mysqlnd .
Note that the MySQL client library is not bundled anymore!

The options I tried to use are:

--with-mysql=mysqlnd 
--with-mysqli=mysqlnd 
--with-pdo-mysql=mysqlnd

I get the feeling I'm overlooking something fairly obvious. If the most sane solution is to dodge EasyApache I don't really have a problem with that.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I think --with-mysqli is sufficient to build PHP with mysqlnd. The error message seems to suggest that the MySQL client library is not bundled, so you need to install it, both binary and header files. If the MySQL client library is installed but the configure script can't find it pass the path to the headers and library to the configure script.

share|improve this answer
    
Thanks. Turned out it was indeed just a matter of --with-mysqli. –  isoheptane Aug 11 '12 at 5:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.