How do I update memcache php extension

37 views Asked by At

Following Ubuntu update to 22.04 PHP is now on 8.1.

Looks like the php-memcache extension therefore needs updated to 3.2.0 per: https://github.com/yiisoft/yii2/issues/19149

Not that knowledgable about pear/pecl PHP package repositories and commands, so not making much progress in getting this updated, does anyone have the steps I might be able to follow?

$ pecl download memcached
$ tar zxvf memcached-1.0.0.tgz (or whatever version downloads)
$ cd memcached-1.0.0
$ phpize
$ ./configure --with-libmemcached-dir=/opt/local
$ make
$ sudo make install

The above is failing on ./configure --with-libmemcached-dir=/opt/local

checking for libmemcached location... configure: error: memcached support requires libmemcached. Use --with-libmemcached-dir=<DIR> to specify the prefix where libmemcached headers and library are located
0

There are 0 answers