PhpSwitcher 5.0.0 - php-imagick compilation failure with php 7.3 (compiled)

  • Hi guys,

    I tried to install Imagemagick for php 7.3 with the phpswitcher Plugin. That's what I did:


    Does anybody have a solution? If you need more info about my System, just ask.


    regards,


    Sharko

  • The newest I think.


    i-MSCP 1.5.3

    Build: 2018120800


    PHPSwitcher:

    Version 5.0.2 (Build 2019093000)



    Just in case:

    OS: Debian GNU/Linux 9.11 (stretch) x86_64

    Model: S1200RP ....................

    Kernel: 4.9.0-11-amd64

    Shell: zsh 5.3.1

    Terminal: sudo

    CPU: Intel Xeon E3-1271 v3 (8) @ 4.0GHz

    Memory: 15756MB / 31912MB

  • kess


    Thank you.


    Sharko


    What's the result of the following command on your system:


    Code
    1. # aptitude search imscp



    Normally, (with PhpSwitcher >= 5.0.0), a specific dependency package is installed for each compiled PHP version. For instance, for PHP 7.1:



    That package is automatically built and installed by the php_compiler.pl script to satisfy the PHP runtime dependencies, including some dev dependencies. As you can see, there is a depend on the libpcre3-dev and libpcre2-dev packages which should provide the missing pcre2.h header file...

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

  • I already had the idea of a missing package. But that solved it, thank you very much!


    Edit: Nuxwin no output. But the hint from kess solved it ;-)

  • I already had the idea of a missing package. But that solved it, thank you very much!

    Please answer me, even if your problem is solved. I want be sure that for your compiled PHP 7.3 version, the runtime dependency package has been installed.

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

  • Nuxwin

    Changed the title of the thread from “php-imagick wouldn't install with phpswitcher” to “PhpSwitcher 5.0.0 - php-imagick compilation failure with php 7.3 (compiled)”.
  • I'm sorry. Here is the output:


    Code
    1. ⚡  root@s01  ~  LANG=C aptitude show imscp-psw-php7.1-runtime-dependencies
    2. E: Unable to locate package imscp-psw-php7.1-runtime-dependencies
    3. ✘ ⚡  root@s01  ~  aptitude search imscp
    4. ✘ ⚡  root@s01  ~ 
  • I'm sorry. Here is the output:


    Code
    1. ⚡  root@s01  ~  LANG=C aptitude show imscp-psw-php7.1-runtime-dependencies
    2. E: Unable to locate package imscp-psw-php7.1-runtime-dependencies
    3. ✘ ⚡  root@s01  ~  aptitude search imscp
    4. ✘ ⚡  root@s01  ~ 

    So, you have a problem... Package for runtime dependency are not there... Not normal. I'll check on stretch with 7.3 and give you some instruction later on to force build and installation of those package.

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

  • Just in case, as I use PHPSwitcher (5.0.2) and also running on Debian 9.11:

    Code
    1. root@:# apt-cache search imscp
    2. imscp-psw-php7.1-runtime-dependencies - Runtime dependencies for PHP 7.1
    3. imscp-psw-php5.6-runtime-dependencies - Runtime dependencies for PHP 5.6
    4. imscp-psw-php7.4-runtime-dependencies - Runtime dependencies for PHP 7.4
    5. imscp-psw-php7.3-runtime-dependencies - Runtime dependencies for PHP 7.3
    6. imscp-psw-php7.2-runtime-dependencies - Runtime dependencies for PHP 7.2
    7. imscp-psw-php7.0-runtime-dependencies - Runtime dependencies for PHP 7.0
    8. imscp-psw-php5.3-runtime-dependencies - Runtime dependencies for PHP 5.3


    I did have all installed on my system.