phpswitcher 5.0.2 on proxmox - errors

  • Hello,

    When trying to compile any php version on PhpSwitcher 5.0.2 on newest i-MSCP version installed within Ubuntu 16.04 or 18.04, I'm getting this kind of error:



    When I'm trying to install with --no-chroot:


    Code
    1. [INFO] Executing the clean, install MAKE(1) target(s) for PHP 7.2.23...
    2. make: Entering directory '/usr/local/src/phpswitcher/php-7.2.23'
    3. make: Leaving directory '/usr/local/src/phpswitcher/php-7.2.23'
    4. [ERROR] main: An error occurred while executing MAKE(1) target(s) for PHP 7.2.23: make: Makefile: No such file or directory
    5. make: *** No rule to make target 'Makefile'. Stop.

    Those errors happens regardless of php version I'm trying to install.


    What can be significant, both of installations where I've tried to run that, are proxmox hosted containers.


    Can we do anything to pass that errors?

  • Nuxwin

    Added the Label to be investigated
  • We need investigate...

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

  • theqkash


    Which version of PROXMOX are you using?

    Distribution and codename (guest)?


    Thank you.

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

  • theqkash


    When you execute i-MSCP in an LXC container, there is a lot of permissions problems as the container is unprivileged. We need review our howto for Proxmox. For the time being, don't build the PHP versions in a chroot environment. You can do that by passing the --no-chroot option to the php_compiler script:


    Code
    1. root@xenial:~# perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --verbose --no-chroot --register 7.2


    Please, read the documentation: https://wiki.i-mscp.net/doku.php?id=plugins:phpswitcher in which this option is clearly described.

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

  • Nuxwin

    Set the Label from to be investigated to not a bug