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:
Both command return the following error:
Code
- checking for icu-config... no
- checking for location of ICU headers and libraries... not found
- /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/Makefile:368: recipe for target 'configure-7.1-stamp' failed
- [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'
- ../configure: line 5383: test: too many arguments
- configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
- make: *** [configure-7.1-stamp] Error 1
I am not sure what is ICU for, but as far I can tell, it is installed.
Code
- root@cp:/var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# icuinfo
- <icuSystemParams type="icu4c">
- <param name="copyright"> Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html </param>
- <param name="product">icu4c</param>
- <param name="product.full">International Components for Unicode for C/C++</param>
- <param name="version">64.1</param>
- <param name="version.unicode">12.0</param>
- <param name="platform.number">4000</param>
- <param name="platform.type">Linux</param>
- <param name="locale.default">en_GB</param>
- <param name="locale.default.bcp47">en-GB</param>
- <param name="converter.default">UTF-8</param>
- <param name="icudata.name">icudt64l</param>
- <param name="icudata.path"></param>
- <param name="cldr.version">35.0</param>
- <param name="tz.version">2018i</param>
- <param name="tz.default">Europe/Berlin</param>
- <param name="cpu.bits">64</param>
- <param name="cpu.big_endian">0</param>
- <param name="os.wchar_width">4</param>
- <param name="os.charset_family">0</param>
- <param name="os.host">x86_64-pc-linux-gnu</param>
- <param name="build.build">x86_64-pc-linux-gnu</param>
- <param name="build.cc">gcc</param>
- <param name="build.cxx">g++</param>
- <param name="uconfig.internal_digitlist">1</param>
- <param name="uconfig.have_parseallinput">1</param>
- </icuSystemParams>
- ICU Initialization returned: U_ZERO_ERROR
- Plugins are disabled.
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.