Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Can't Install XDiff on PHP7

Discussion in 'General Discussion' started by batgranny, Apr 10, 2017.

  1. batgranny

    batgranny Member

    Joined:
    Aug 3, 2015
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Ireland
    cPanel Access Level:
    Root Administrator
    I'm trying to install XDiff or PHP 7.0 using the pecl module installer. It is failing and I am getting the following error:

    checking for xdiff files in default path... not found
    configure: error: Please reinstall the libxdiff distribution

    My full install log file is:
    Code:
    downloading xdiff-2.0.1.tgz ...
    Starting to download xdiff-2.0.1.tgz (10,418 bytes)
    .....done: 10,418 bytes
    4 source files, building
    running: phpize
    Configuring for:
    PHP Api Version: 20151012
    Zend Module Api No: 20151012
    Zend Extension Api No: 320151012
    libxdiff library installation dir? [autodetect] : building in /root/tmp/pear/pear-build-rootRxTYpi/xdiff-2.0.1
    running: /root/tmp/pear/xdiff/configure --with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config --with-xdiff
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for cc... cc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking how to run the C preprocessor... cc -E
    checking for icc... no
    checking for suncc... no
    checking whether cc understands -c and -o together... yes
    checking for system library directory... lib
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for PHP prefix... /opt/cpanel/ea-php70/root/usr
    checking for PHP includes... -I/opt/cpanel/ea-php70/root/usr/include/php -I/opt/cpanel/ea-php70/root/usr/include/php/main -I/opt/cpanel/ea-php70/root/usr/include/php/TSRM -I/opt/cpanel/ea-php70/root/usr/include/php/Zend -I/opt/cpanel/ea-php70/root/usr/include/php/ext -I/opt/cpanel/ea-php70/root/usr/include/php/ext/date/lib
    checking for PHP extension directory... /opt/cpanel/ea-php70/root/usr/lib64/php/modules
    checking for PHP installed headers prefix... /opt/cpanel/ea-php70/root/usr/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... no
    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
    checking for gawk... gawk
    checking for xdiff support... yes, shared
    checking for xdiff files in default path... not found
    configure: error: Please reinstall the libxdiff distribution
    ERROR: `/root/tmp/pear/xdiff/configure --with-php-config=/opt/cpanel/ea-php70/root/usr/bin/php-config --with-xdiff' failed
    
    My server details are:

    CENTOS 6.9 x86_64 hyper-v – fs-mg-1 WHM 62.0 (build 20)

    What can I do to resolve this?
     
  2. cPJacob

    cPJacob cPanel Product Owner
    Staff Member

    Joined:
    May 2, 2014
    Messages:
    605
    Likes Received:
    94
    Trophy Points:
    103
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi,

    As per the message 'configure: error: Please reinstall the libxdiff distribution', have you installed libxdiff? That doesn't come from CentOS repositories, so you'll likely need to compile this piece of software manually.
     
  3. batgranny

    batgranny Member

    Joined:
    Aug 3, 2015
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Ireland
    cPanel Access Level:
    Root Administrator
    Thanks for the help and you are exactly right. It turns out I'd actually fixed this on another server and made a note of it. For anyone that might have the same issue, this is how to install libxdiff:

    Code:
    cd /usr/src
       wget [URL]http://www.xmailserver.org/libxdiff-0.22.tar.gz[/URL]
       tar -xzf libxdiff-0.22.tar.gz
       cd libxdiff-0.22
       ./configure
       make
       make install
    
    Thanks again!
     
    #3 batgranny, Apr 10, 2017
    Last edited by a moderator: Apr 10, 2017
    cPanelMichael likes this.
Loading...

Share This Page