php-switcher error on Ubuntu 16.04LTS with i-MSCP 1.3.0

  • Hello,


    I bought the php-switcher plugin (version: 2.2.6) to have PHP 5.6 on Ubuntu 16.04 LTS, but when I execute perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl 5.6 I get the following error:


    regards,


    thoand

  • @thoand


    Please, show us your /etc/apt/sources.list A development library is missing on your system.

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

  • BTW:


    Code
    1. root@xenial:/usr/local/src# perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl -j12 5.6...Build complete.Don't forget to run 'make test'.make[1]: Leaving directory '/usr/local/src/phpswitcher/php-5.6.23/5.6-build'touch build-5.6-stampif [ -d 5.6-fpm-build ]; then \cd 5.6-fpm-build && make install-fpm; \else \cd 5.6-build && make install; \mkdir -p /opt/phpswitcher/php5.6/etc/php/conf.d; \if [ -f ../php.ini-recommended ]; then \cp ../php.ini-recommended /opt/phpswitcher/php5.6/etc/php/php.ini; \else \cp ../php.ini-production /opt/phpswitcher/php5.6/etc/php/php.ini; \fi; \cp ../modules.ini /opt/phpswitcher/php5.6/etc/php/conf.d/modules.ini; \if [ -f /opt/phpswitcher/php5.6/etc/php-fpm.conf.default ]; then \mv /opt/phpswitcher/php5.6/etc/php-fpm.conf.default /opt/phpswitcher/php5.6/etc/php-fpm.conf; \fi; \ln -sf /usr/share/misc/config.guess /opt/phpswitcher/php5.6/lib/php/build/config.guess; \ln -sf /usr/share/misc/config.sub /opt/phpswitcher/php5.6/lib/php/build/config.sub; \ln -sf /usr/share/aclocal/libtool.m4 /opt/phpswitcher/php5.6/lib/php/build/libtool.m4; \ln -sf /usr/share/libtool/build-aux/ltmain.sh /opt/phpswitcher/php5.6/lib/php/build/ltmain.sh; \ln -sf /usr/bin/shtool /opt/phpswitcher/php5.6/lib/php/build/shtool; \fimake[1]: Entering directory '/usr/local/src/phpswitcher/php-5.6.23/5.6-build'Installing PHP CLI binary: /opt/phpswitcher/php5.6/bin/Installing build environment: /opt/phpswitcher/php5.6/lib/php/build/Installing PHP FPM binary: /opt/phpswitcher/php5.6/sbin/Installing PHP CGI binary: /opt/phpswitcher/php5.6/bin/Installing shared extensions: /opt/phpswitcher/php5.6/lib/php/20131226/Installing PHP CGI man page: /opt/phpswitcher/php5.6/share/man/man1/Installing PHP CLI man page: /opt/phpswitcher/php5.6/share/man/man1/Installing PHP FPM config: /opt/phpswitcher/php5.6/etc/Installing helper programs: /opt/phpswitcher/php5.6/bin/Installing PEAR environment: /opt/phpswitcher/php5.6/share/pear/program: phpizeInstalling PHP FPM man page: /opt/phpswitcher/php5.6/share/man/man8//usr/local/src/phpswitcher/php-5.6.23/build/shtool install -c ext/phar/phar.phar /opt/phpswitcher/php5.6/binprogram: php-configln -s -f phar.phar /opt/phpswitcher/php5.6/bin/pharInstalling PHP FPM status page: /opt/phpswitcher/php5.6/share/php/fpm/make[2]: Entering directory '/usr/local/src/phpswitcher/php-5.6.23/5.6-build'Installing man pages: /opt/phpswitcher/php5.6/share/man/man1/page: phpize.1Installing PDO headers: /opt/phpswitcher/php5.6/include/php/ext/pdo/page: php-config.1[PEAR] Archive_Tar - installed: 1.4.0[PEAR] Console_Getopt - installed: 1.4.1[PEAR] Structures_Graph- installed: 1.1.1[PEAR] XML_Util - installed: 1.3.0[PEAR] PEAR - installed: 1.10.1Wrote PEAR system config file at: /opt/phpswitcher/php5.6/etc/pear.confYou may want to add: /opt/phpswitcher/php5.6/share/pear to your php.ini include_pathmake[2]: Leaving directory '/usr/local/src/phpswitcher/php-5.6.23/5.6-build'Installing header files: /opt/phpswitcher/php5.6/include/php/make[1]: Leaving directory '/usr/local/src/phpswitcher/php-5.6.23/5.6-build'if [ -d 4.4-build ]; then \mv /opt/phpswitcher/php5.6/bin/php /opt/phpswitcher/php5.6/bin/php-cgi; \cd 4.4-build && make install-cli; \firm -f /opt/phpswitcher/php5.6/etc/php-fpm.d/www.conf.defaultif [ -d /opt/phpswitcher/php5.6/etc/php-fpm.d ]; then \cp /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/templates/php/fpm/php-fpm.pool.default /opt/phpswitcher/php5.6/etc/php-fpm.d/www.conf; \sed -i -e 's/{PHP_VERSION}/5.6/g' /opt/phpswitcher/php5.6/etc/php-fpm.d/www.conf; \fiif [ -f /opt/phpswitcher/php5.6/sbin/php-fpm ]; then \mv /opt/phpswitcher/php5.6/sbin/php-fpm /opt/phpswitcher/php5.6/sbin/psw5.6-fpm; \fitouch install-5.6-stamp[DONE] `install` make target successfully executed for php-5.6.23[DONE] PHP 5.6.23 successfully installedroot@xenial:/usr/local/src#
    Code
    1. root@xenial:/usr/local/src# lsb_release -a
    2. No LSB modules are available.
    3. Distributor ID: Ubuntu
    4. Description: Ubuntu 16.04 LTS
    5. Release: 16.04
    6. Codename: xenial


    Be aware that the PHP compiler just ignore missing packages and go ahead, leading to failure if one development library is missing. So again, show us your /etc/apt/sources.list file.

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

  • @Nuxwin


    I haven't edited the sources.list, just installed Ubuntu 16.04 LTS and i-MSCP, so it might be needed to add something to the i-MSCP installer?

    regards,
    thoand

  • @thoand


    There is nothing to add in the i-MSCP installer ;) Your sources.list is a mess ;)


    Please give me the result of the following command:


    Code
    1. # apt-cache show libtidy-dev

    If you don't figure out alone, I can investigate your server directly.


    BTW: My sources.list

    Code
    1. root@xenial:/usr/local/src# cat /etc/apt/sources.list
    2. deb http://fr.archive.ubuntu.com/ubuntu/ xenial main universe multiverse
    3. deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial main universe multiverse
    4. deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main universe multiverse
    5. deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main universe multiverse
    6. deb http://security.ubuntu.com/ubuntu xenial-security main universe multiverse
    7. deb-src http://security.ubuntu.com/ubuntu xenial-security main universe multiverse
    8. root@xenial:/usr/local/src#

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

  • @Nuxwin



    regards,
    thoand


    PS: my sources.list is just the default

  • Result of the following command please


    Code
    1. # find /usr/include -name buffio.h


    and if ok


    Code
    1. # ls -la /usr/include/tidy/buffio.h

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

  • buffio.h did not exist.


    I then purged libtidy-dev and installed it again, not it exists. I am trying to build php now.

  • @thoand


    ok, you have libtidy-dev package from external repository Version: 1:5.2.0-1+deb.sury.org~xenial+1 ... That the reason. I can fix your server if you want. Teamviewer ?

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