sudo pecl install apc returns error
I run the command: sudo pecl install apc
The file gets downloaded, the configuration succeeds, then make
is launched and I get the following error.
/usr/include/php5/ext/pcre/php_pcre.h:29: fatal error: pcre.h: No such file or directory
Is there a way to fix it?
PCRE is a dependency for installing APC. You can install it pretty quick with
yum install pcre-devel
or apt-get install libpcre3-dev
once it's installed, re-run
sudo pecl install apc
sudo apt-get install libpcre3-dev is the answer.
So to be able to install pecl [install extension]
the following packages are required:
sudo apt-get install php5-pear php5-dev libpcre3-dev
What version of PHP?
For a while, some months ago, I had trouble installing APC, and could only make it work with pecl install apc-beta
If you're not dealing with a production system, you might try that.