Couldn't compile PHP 7.0/7.1 on Debian 9/Stretch (i386 Arch)

  • Good Morning


    I get the following error when I try to install PHPSwitcher.


    Can you help me?


    Code
    1. perl php_compiler.pl -a -f 7.0..../var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/Makefile:368: fallo en las instrucciones para el objetivo 'configure-7.0-stamp'[ERROR] main: An unexpected error occurred: An error occurred while executing the install MAKE(1) target for php-7.0.24: aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'../configure: line 5384: test: too many argumentsconfigure: error: Unable to locate gmp.hmake: *** [configure-7.0-stamp] Error 1
  • Could give us the result of the following command on your system: dpkg -S gmp.h

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Code
    1. dpkg -S gmp.h
    2. linux-libc-dev:i386: /usr/include/linux/igmp.h
    3. libc6-dev:i386: /usr/include/netinet/igmp.h
    4. libgmp-dev:i386: /usr/include/i386-linux-gnu/gmp.h
  • I'll do a test this evening with i386 arch ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @fernandomaltrana



    Please, can you show us the result of the following command on your system?


    Code
    1. # dpkg-architecture

    Also, is your system a vps? If yes, which type?


    Thank you.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hi


    It's a virtual machine running over vmware esxi 5.5


    PD: maybe will be a better idea migrate to debian 64 bits ;-)




  • @fernandomaltrana


    Issue confirmed. Will be fixed in next version:


    PHP 7.0 (i386 arch)

    Shell-Script
    1. root@stretch32:/usr/local/src# LANG=C perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl -st configure 7.0.../var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/Makefile:368: recipe for target 'configure-7.0-stamp' failed[ERROR] main: An unexpected error occurred: An error occurred while executing the configure MAKE(1) target for php-7.0.24: aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'../configure: line 5384: test: too many argumentsconfigure: error: Unable to locate gmp.hmake: *** [configure-7.0-stamp] Error 1


    PHP 7.1 (i386 arch)

    Shell-Script
    1. root@stretch32:/usr/local/src# LANG=C perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl -st configure 7.1
    2. ...
    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 configure MAKE(1) target for php-7.1.10: 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 locate gmp.h
    7. make: *** [configure-7.1-stamp] Error 1

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @fernandomaltrana


    Fixed in latest version. See PhpSwitcher plugin v4.0.2 RELEASED


    Thank you for your report.
    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206