Posts by TheCry

    I think there is another problem.

    On my systems isn't possible anymore to install the extenion "imagick" fpr php 5.6, php7.2, and php7.3

    Code
    1. cd /opt/phpswitcher/%ymd%/php%version%/bin
    2. ./pecl install imagick
    3. echo 'extension = imagick.so' >> /opt/phpswitcher/%ymd%/php%version%/etc/php/conf.d/modules.ini


    I got everytime this error


    Something is not correct with compiling.

    Ok.. I got everything working

    The changes above are top! Here my end config

    Code
    1. my %MTTV = (
    2. '5.3' => '5.3.29', # End of life: 14 August 2014
    3. '5.4' => '5.4.45', # End of life: 3 September 2015
    4. '5.5' => '5.5.38', # End of life: 21 July 2016
    5. '5.6' => '5.6.40',
    6. '7.0' => '7.0.33',
    7. '7.1' => '7.1.11',
    8. '7.2' => '7.2.21',
    9. '7.3' => '7.3.8'
    10. );



    Code
    1. prepared: prepared-stamp
    2. prepared-stamp:
    3. -[ -f ext/ext_skel ] && mv ext/ext_skel ext/ext_skel.in
    4. ./buildconf --force
    5. touch prepared-stamp


    The "-" was missing in front of "["

    Good morning

    joximu

    The tut is fine and seams partitial working for me.

    If i try to compile php7.3 i got this error

    Code
    1. Hunk #1 FAILED at 41.
    2. 1 out of 1 hunk FAILED -- rejects in file ext/pcre/tests/match_flags3.phpt
    3. Patch 0038-php-5.6.0-oldpcre.patch does not apply (enforce with -f)
    4. /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/Makefile:288: recipe for target 'patch-stamp' failed
    5. [ERROR] main: An unexpected error occurred: An error occurred while executing the install MAKE(1) target for php-7.3.3: make: *** [patch-stamp] Error 1

    A patch php 5.6.0? I'm a little bit confused. Wheer can i get the hole patch files from the internet?

    Sascha



    Edit: The first problem is fixed. I'd added the correct verion "7.3.8" in the array. But now i got this error

    Code
    1. -f ext/ext_skel ] && mv ext/ext_skel ext/ext_skel.in
    2. /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/Makefile:302: recipe for target 'prepared-stamp' failed
    3. [ERROR] main: An unexpected error occurred: An error occurred while executing the install MAKE(1) target for php-7.3.8: make: *** [prepared-stamp] Error 1

    I'd changed the block "prepared: prepared-stamp" like you described. But this is the same block like in the script before. Can you check your fix again?