1

I'm trying to install memcached and am having some difficulty. Here's what I tried:

apt-get update
apt-get install memcached libmemcached-dev libzip-dev
pecl install memcached

pecl install memcached asked me a bunch of questions:

libmemcached directory [no] : /usr/include/libmemcached/
zlib directory [no] :
use system fastlz [no] :
enable igbinary serializer [no] :
enable msgpack serializer [no] :
enable json serializer [no] :
enable server protocol [no] :
enable sasl [yes] :
enable sessions [yes] :

I went with the default answers for each one, save for the first one, and got this error:

checking for libmemcached location... configure: error: Unable to find memcached.h under /usr/include/libmemcached/

ERROR: `/tmp/pear/temp/memcached/configure --with-php-config=/usr/local/bin/php-config --with-libmemcached-dir=/usr/include/libmemcached/ --with-zlib-dir=no --with-system-fastlz=no --enable-memcached-igbinary=no --enable-memcached-msgpack=no --enable-memcached-json=no --enable-memcached-protocol=no --enable-memcached-sasl=yes --enable-memcached-session=yes' failed

I do not understand this error. When I do find / -type f -name "memcached.h" I get this back:

/usr/include/libmemcached-1.0/struct/memcached.h
/usr/include/libmemcached-1.0/memcached.h
/usr/include/libmemcached/memcached.h

So find can find memcached.h in /usr/include/libmemcached/ but /tmp/pear/temp/memcached/configure can't? That doesn't make any sense.

I'm running all this in sudo bash so permissions shouldn't be an issue.

Any ideas?

3
  • Have you check the basic, ping, network, name resolution ?
    – Maslie
    Commented Jun 6 at 14:05
  • 1
    @Maslie - all of that is fine. Presumably apt-get update would have failed if it wasn't
    – neubert
    Commented Jun 7 at 21:56
  • could you try to use it on root user directly and not with sudo to see if it change anything ?
    – Maslie
    Commented Jun 10 at 10:16

0

You must log in to answer this question.

Browse other questions tagged .