Posts by Starlight

    Here is an optimized version of you script UncleSam

    After updating to 5.0.1 I got another error:


    Any idea?


    To re-run, I also need to clean up the build directory. Could be an improvement before starting the build process:

    Code
    1. rm -r /var/cache/pbuilder/psw-debian-jessie.cow/

    Hi Nuxwin ,


    First of all thank you for the latest release of PHP Switcher.


    When compiling PHP versions with the following command line:

    Code
    1. perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --register --force-last --install-dir /opt/phpswitcher/%compDate% --runtime-dependencies --verbose --zts %phpVersions%

    I get an error "An error occurred while setup of PHP build environment: need to specify operation before --basepath option"


    with the following stack:

    What is wrong with --architecture amd64? How to solve this?


    With  --no-chroot it runs.

    I improved the script to not add redundant code (50% less lines of code) for each new version:


    The latest PHP Switchre plug-in has a dependency between libgd-dev and libgd2-xpm-dev that cannot be resolved in jessie. It leads to an error while compiling PHP versions.


    This package should and can be safely removed in Debian jessie (transitional package) and strech (virtual package).

    I'll and I hope that following you work, you'll participate too.

    Sure, I will do. Let me first try to get my plugin working as expected and I'm going to document the important parts. Nevertheless, for the tricky parts, I need your help. You know the code better.



    Quote from Starlight

    b) find out what API version is the minimum possible to provide a plugin for?


    Here you got me wrong. I actually wanted to find out, how to identify the lowest API version, the plugin would probably work with. It's a bit tricky: I develop a plugin with iMSCP 1.5.1 and API v 1.5.0. And I wonder, is this also working with iMSCP 1.1.6 or 1.4.7 or not. Just to set the api_version parameter right.