PEAR claims php was compiled with old module


I just upgraded to php 5.6.4. When i do pear installs of various packages it complains that if have a module mismatch.


sudo pecl install xdebug Failed loading /usr/local/php-5.6.4/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so: /usr/local/php-5.6.4/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so: undefined symbol: zend_execute_ex Zend OPcache requires Zend Engine API version 220131226. The Zend Engine API version 220100525 which is installed, is outdated. PHP Warning: PHP Startup: PDFlib: Unable to initialize module Module compiled with module API=20131226 PHP compiled with module API=20100525

However, 20131226 is php 5.6.4, 20100525 is 5.4 i believe. So oddly pear thinks the modules were compiled w/ 5.6 but the version of php is 5.4. Ive had this the other way around where the module is older than the php version a lot and typically just recompile those module. this one im a bit stumped.

[richv]$ php -v PHP 5.6.4 (cli) (built: Jun 16 2015 16:08:30) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies with Xdebug v2.3.2, Copyright (c) 2002-2015, by Derick Rethans with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies [richv]$ pear version PEAR Version: 1.9.5 PHP Version: 5.6.4 Zend Engine Version: 2.6.0 Running on: Linux dragon 3.10.0-229.4.2.el7.x86_64 #1 SMP Wed May 13 10:06:09 UTC 2015 x86_64


If you still have the old php version lying around, then pear/pecl probably still uses this php version - even if it shows the correct php version in pear version.

Try to change the php_bin pear config setting:

$ pear config-show .. $ pear config-set php_bin /path/to/new/php


  • PEAR claims php was compiled with old module
  • NodeJS + expressJS: server-side vs. client-side html rendering [closed]
  • Record selectors in Haskell's Type Classes
  • Selector for “Define” Edit Menu item in iOS 5
  • TS2339: Property 'includes' does not exist on type 'string'
  • Mocking OpenXML with Moq
  • Select Checkbox !== Select Row Table
  • Xamarin.Forms: How To Populate A Pie Chart From Web API Data?
  • svnserve and SASL problem
  • How to read contents of a directory recursively in Linux Kernel?
  • Dynamic reference casting depending on actual object type
  • How to create wsdl from xsd
  • Firebase suddenly reports invalid signature
  • didSelectItemAtIndexPath of UICollectionView inside of a UIScrollView is not getting called
  • Create an Office365 mailbox from within C# Web API method
  • How to use Typescript with libraries like Ampersand.js that parse configs to build prototypes
  • Excel File upload in asp.net using SqlBulkCopy
  • Generate and export point cloud from Project Tango
  • Ember.js + JQuery-UI Tooltip - Tooltip does not reflect the model / controller changes
  • Separating definition/instantiation of template classes without 'extern'
  • Create an average of multiple excel chart without the data source
  • JQuery: Infinite input select
  • I am consuming a WCF service that requires headers from a .NET 2 website. How can I programmatically
  • 'url' requires a non-empty first argument. The syntax changed in Django 1.5, see the docs
  • Why does Rails 3 think xE2x80x89 means â x80 x89
  • How to use FirstOrDefault inside Include
  • Time Complexity of Fibonacci Algorithm [duplicate]