make error in php 5.4.42

Duboux

Verified User
Joined
Apr 20, 2007
Messages
264
Hi,

When upgrading 5.4.41 to 5.4.42 I'm getting the following error:

Code:
Installing PEAR environment:      /usr/local/lib/php/
PHP Fatal error:  include_once(): Cannot redeclare class pear_installer_role_common in phar:///usr/local/directadmin/custombuild/php-5.4.42/pear/install-pear-nozlib.phar/PEAR/Frontend.php on line 86
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2

*** The install has failed, would you like to try to install it again? (y,n):

I'm on CentOS release 5.11 (Final)

Any ideas ?
 
I had the same problem and I solved it by following this guide:
http://help.directadmin.com/item.php?id=400

Note: It's been observed that with APC enabled, php may not install on the "make install" step. The error it produces is as follows:
Fatal error: Class 'PEAR' not found in phar://install-pear-nozlib.phar/index.php on line 24
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2

After removing the APC options from the php.ini, it installed. The APC could be re-enabled.
 
Back
Top