install memcache php 7.1

Discussion in 'ISPConfig 3 Priority Support' started by gpetrom, Jan 25, 2017.

  1. gpetrom

    gpetrom Member

    Hi

    I have followed the following tutorial to install php 7.1
    https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/
    Php installed successful. I have a problem when i am trying to install memcache.
    Code:
    root@websrv /usr/local/src/php7-build/php-memcache/php-memcached-php7 # /opt/php-7.1/bin/phpize
    Configuring for:
    PHP Api Version:         20160303
    Zend Module Api No:      20160303
    Zend Extension Api No:   320160303
    root@websrv /usr/local/src/php7-build/php-memcache/php-memcached-php7 # ./configure --with-php-config=/opt/php-7.1/bin/php-config
    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 whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    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/php-7.1
    checking for PHP includes... -I/opt/php-7.1/include/php -I/opt/php-7.1/include/php/main -I/opt/php-7.1/include/php/TSRM -I/opt/php-7.1/include/php/Zend -I/opt/php-7.1/include/php/ext -I/opt/php-7.1/include/php/ext/date/lib
    checking for PHP extension directory... /opt/php-7.1/lib/php/extensions/no-debug-non-zts-20160303
    checking for PHP installed headers prefix... /opt/php-7.1/include/php
    checking if debug is enabled... no
    checking if zts is enabled... no
    checking for re2c... re2c
    checking for re2c version... 0.13.5 (ok)
    checking for gawk... gawk
    checking whether to enable memcached support... yes, shared
    checking for libmemcached... yes, shared
    checking whether to enable memcached session handler support... yes
    checking whether to enable memcached igbinary serializer support... no
    checking whether to enable memcached json serializer support... no
    checking whether to enable memcached msgpack serializer support... no
    checking whether to enable memcached sasl support... yes
    checking whether to enable memcached protocol support... no
    checking whether to use system FastLZ bibrary... no
    checking for ZLIB... yes, shared
    checking for pkg-config... no
    pkg-config not found
    configure: error: Please reinstall the pkg-config distribution
    root@websrv /usr/local/src/php7-build/php-memcache/php-memcached-php7 # make
    make: *** No targets specified and no makefile found.  Stop.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to install pkg-config with:

    apt-get install pkg-config

    and then try to install the memcache extension again.
     
  3. gpetrom

    gpetrom Member

    Thanks Till that solved the problem
     
  4. gpetrom

    gpetrom Member

Share This Page