eAccelerator Compilation Problem

Discussion in 'Server Operation' started by kiwibob, Nov 28, 2009.

  1. kiwibob

    kiwibob New Member

    The most recent security updates to Debian Lenny included updates to PHP5 which required a recompilation of eAccelerator. Easy enough however the "make test" gave an error:

    PHP Warning: [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.2.0-8+etch15. Rebuild it for your PHP version (5.2.6-1+lenny4) or download precompiled binaries.

    I was able to resolve this by using the commands (note the added 5) :

    #/usr/bin/phpize5
    #./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config5

    I can't see any reason why this should make a difference as the phpize and php-config files are symbolic links to /etc/alternatives/ where the symbolic links go back to the phpize5 and php-config5 files:

    # ls -laL /usr/bin/php*
    -rwxr-xr-x 1 root root 5318592 2009-11-22 15:49 /usr/bin/php
    -rwxr-xr-x 1 root root 5318592 2009-11-22 15:49 /usr/bin/php5
    -rwxr-xr-x 1 root root 4053 2009-11-22 15:49 /usr/bin/php-config
    -rwxr-xr-x 1 root root 4053 2009-11-22 15:49 /usr/bin/php-config5
    -rwxr-xr-x 1 root root 4141 2009-11-22 15:49 /usr/bin/phpize
    -rwxr-xr-x 1 root root 4141 2009-11-22 15:49 /usr/bin/phpize5

    # diff /usr/bin/php-config /usr/bin/php-config5
    # diff /usr/bin/phpize /usr/bin/phpize5
    #


    Can anyone see what has gone wrong?
     

Share This Page