Perl compatible regular expressions - PCRE libraries is missing (...fatal error: pcre.h:...), because you are compiling module you should add dev packages too:
sudo apt-get update
sudo apt-get install libpcre3 libpcre3-dev
This is solution for you complete steps to install the memcached and php7 on Ubuntu OS:
First, You get and instal the PHP-7 and memcached:
sudo apt-get update
sudo apt-get install -y tmux curl wget \
nginx \
php7.0-fpm \
php7.0-cli php7.0-curl php7.0-gd \
php7.0-intl php7.0-mysql php-memcached
Then PHP7 is installed!
Seconds, If php-memcached was not installed, we can build it manually. (However, it's likely available to install via the php7.0-memcached package now).
If you need a newer version of the PHP-Memcached module, we can build it manually. Here's how:
sudo apt-get install -y php7.0-dev git pkg-config build-essential libmemcached-dev
sudo apt-get install -y libmemcached-dev libmemcached11 git build-essential
git clone https://github.com/php-memcached-dev/php-memcached
cd php-memcached
git checkout php7
git pull
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config
make
sudo make install
Then we need to setup PHP (CLI and FPM) to use the memcached module. Edit /etc/php/mods-available/memcached.ini
, add:
; configuration for php memcached module
; priority=20
extension=memcached.so
Then enable it by including symlinks to that file in the FPM/CLI conf.d directories:
sudo ln -s /etc/php/mods-available/memcached.ini /etc/php/7.0/fpm/conf.d/20-memcached.ini
sudo ln -s /etc/php/mods-available/memcached.ini /etc/php/7.0/cli/conf.d/20-memcached.ini
Reload php-fpm to include the new changes
sudo service php7.0-fpm restart
And there we have it, PHP7 is installed, with Memcached support!
Best Answer
I had this problem as well when using 7.1 and after upgrading
pecl
throughapt-get
. I solved this by installing thephp7.1-xml
package usingapt-get
.If you're running 7.0, then you need to do the following:
If you're running 7.1, then run this:
That should solve your issue. It seems that PEAR parses help text and config info at startup and (I'm assuming) it's stored as XML somewhere