• You are here:
  • Home »
  • No category »

How to resolve: This build of “eAccelerator” was compiled for PHP version 5.2.14-0.dotdeb.0.

System: Debian Lenny 5.0, DirectAdmin, after successfully update php to 5.2.14 after download and comile from source eaccelerator and test by php -v I got:

This build of “eAccelerator” was compiled for PHP version 5.2.14-0.dotdeb.0. Rebuild it for your PHP version (5.2.14) or download precompiled binaries.

Bad news because actually I`ve PHP in version 5.2.14! After some research I have solutions.

UPDATE:

/usr/local/php5/bin/phpize

./configure --enable-eaccelerator=shared --with-php-config=/usr/local/php5/bin/php-config

make

make install

in my case I must move compiled eaccelerator file from  /usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so to php extension dir /usr/lib/php5/20060613+lfs/. (update: easier and more logical it is change extension_dir in php.ini)

Have a nice day 🙂

Leave a Comment:

1 comment
mr bojangles says 11 March 2013

Some php packages (like older debian lenny), will fail to update /usr/bin/php-config and /usr/include/php5/main/php_version.h with proper php revision number, if the above doesn’t work, check those files.

Reply
Add Your Reply