Cannot compile PHP (any version) on Ubuntu server 16.04 64 bit

  • Hello,


    I have purchased the plugin PHPSwitcher yesterday. While I was able to install it and see it under Administration area, I am not able to compile any of the PHP version.


    I tested the following commands:

    Code
    1. perl php_compiler.pl all
    Code
    1. perl php_compiler.pl --auto-setup 7.1


    Both command return the following error:


    Code
    1. checking for icu-config... no
    2. checking for location of ICU headers and libraries... not found
    3. /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/Makefile:368: recipe for target 'configure-7.1-stamp' failed
    4. [ERROR] main: An unexpected error occurred: An error occurred while executing the install MAKE(1) target for php-7.1.11: aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
    5. ../configure: line 5383: test: too many arguments
    6. configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
    7. make: *** [configure-7.1-stamp] Error 1


    I am not sure what is ICU for, but as far I can tell, it is installed.



    I have tested the solution in the following article but did not solve the issue:


    Error Compiling PHP Versions for PHP Switcher


    Can someone guide me on how to fix this please?


    Thank you.

    Edited once, last by rgabor73 ().