Search code examples
phppdocentospecl

Failed when installing pdo via pecl


Environment :

  1. Cent OS 6.9
  2. PHP 5.4
  3. nginx

I'm trying to install pdo, when executing

pecl install pdo

I got error messages like this :

Error Message 1

Error Message 2

Error Message 3

Error Message 4

I have googled a lot, but I still don't get it. I need at least a pointer on where I should look, thanks in advance.


Solution

  • I decided to remove php 5.4 then reinstall using this link : PHP 5.4 installation guide, thanks to Alex Howansky for your help, reading your "custom compile" answer gave me an insight to reinstall it, and it works good now, I don't have to install the pdo extension via pecl. Hopefully this will help everyone who's having the same problem as mine.