PhpSwitcher plugin (4.0.3) - Build dependency problem on Debian Jessie

  • Good morning to everybody


    This morning taking advantage of the Sunday I am setting up a new server to eliminate the old one. It has been working for a long time.

    I have set everything up correctly, Debian Jessie, Imscp 1.5.3, I have natively mounted php 5.6 and MySQL 5.5, to preserve all the properties of the old server.


    When trying to compile a new version of php I get this error


    The following packages have unfulfilled dependencies:

    libgd2-xpm-dev: It depends: libgd-dev (= 2.1.0-5 + deb8u11) but 2.2.5-5 + 0 ~ 20181028223034.1 + jessie ~ 1.gbp911a4a is going to be installed

    [ERROR] main: An unexpected error occurred: An error occurred while installing build dependencies: E: Problems could not be corrected, you have retained broken packages.


    The repositories are correct since I have another server mounted with the same

    Can any of you tell me what could have happened?


    Thank you

  • kurgans

    Changed the title of the thread from “Problem with PhpSwitcher Versión 4.0.3 (Build 2017111000)” to “Weird error with PhpSwitcher Versión 4.0.3 (Build 2017111000)”.
  • Nuxwin

    Changed the title of the thread from “Weird error with PhpSwitcher Versión 4.0.3 (Build 2017111000)” to “PhpSwitcher plugin (4.0.3) - Build dependency problem on Debian Jessie”.
  • kurgans



    The following packages have unfulfilled dependencies:

    libgd2-xpm-dev: It depends: libgd-dev (= 2.1.0-5 + deb8u11) but 2.2.5-5 + 0 ~ 20181028223034.1 + jessie ~ 1.gbp911a4a is going to be installed

    As I see, Ondrey Sury bumped libgd-dev version through his repository but libgd2-xpm-dev from Jessie repository require older version. I'll have a talk with him about that.

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

  • kurgans



    The PhpSwitcher plugin (compiler) rely on older development library. I'll provide you with newer list of build dependencies tomorrow morning. The plugin shouldn't rely on specific version whenever possible. For instance, it should rely on the libxpm-dev instead of the libgd2-xpm-dev package.

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

  • kurgans


    You can find the build dependencies attached below.

    1. Download the file somewhere on your server as psw_jessie_builddeps.txt
    2. Install the build dependencies as follows: apt-get install $(cat psw_jessie_builddeps.txt)
    3. Always run the PHP compiler with the --skip-builddeps options

    psw_jessie_builddeps.txt

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

  • Good morning Nuxwin ..


    Thank you very much .. I am reinstalling the server .. in a moment I will follow your steps and tell you how the process has been.


    Thank you so much for everything..

  • He seguido los pasos que indicas pero encuentro el siguiente error:


    Los siguientes paquetes tienen dependencias incumplidas:

    libgd2-xpm-dev : Depende: libgd-dev (= 2.1.0-5+deb8u12) pero 2.2.5-5+0~20190119054525.2+jessie~1.gbp911a4a va a ser instalado

    [ERROR] main: An unexpected error occurred: An error occurred while installing build dependencies: E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.