Error Compiling PHP Versions for PHP Switcher

  • I upgraded mei Webhost to Debian 9.8 Stretch. Everything works fine except the PHPSwitcher because i need to recompile the php versions.

    I tried to compile like shown in the tutorial with the command e.g.:

    1. perl 5.6

    But i always get following error:

    1. /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/Makefile:368: die Regel für Ziel „configure-5.6-stamp“ scheiterte
    2. [ERROR] main: An unexpected error occurred: An error occurred while executing the install MAKE(1) target for php-5.6.32: aclocal: warning: autoconf input should be named '', not ''
    3. configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 3.0, min: 204, excluded: 3.0).
    4. ../configure: line 5439: test: too many arguments
    5. configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
    6. make: *** [configure-5.6-stamp] Fehler 1

    I am using Debian 9 Stretch with i-mscp 1.5.3 and PHPSwitcher Version 4.0.3 (Build 2017111000)

    Thanks in advance

  • Good evening,

    This is because they have removed the icu-config executable in latest libicu-dev package (as provided by Ondrey Sury repository).

    Please do the following:

    Create the following APT preferences file: /etc/apt/preferences.d/phpswitcher

    with the following content:

    1. Package: libicu-dev icu-devtools
    2. Pin: release o=debian
    3. Pin-Priority: 1002

    Once done, execute apt-get update && apt-get dist-upgrade. This should downgrade the relevant packages. Then, once the packages were downgraded, retry.


  • Nuxwin

    Added the Label solved
  • Nuxwin

    Closed the thread.
  • Thanks Nuxwin it worked like a charm! Thanks for the great support!

    You're welcome.

    Thread closed.