Back to top

Add new comment

... recurrent error at 'sudo pecl install apc'


Hi, I was thrilled to find your guide here... just what I was looking for!!

So, I've followed it to the letter, with the exception of using the drupal repositories for 7.21 especially as the connection to kept failing...
(another small issue at "sudo cp -a . ../public_html/" ... I had to first create the 'public_html' directory myself)

The main issue: got all the way to issuing the "sudo pecl install apc" command and am getting an error I don't know how to deal with or even interpret [everything else looked fine, so I'm just posting the last few lines of output which contained the error]:

running: make
/bin/bash /tmp/pear/temp/pear-build-rootZlgTaM/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootZlgTaM/APC-3.1.13/include -I/tmp/pear/temp/pear-build-rootZlgTaM/APC-3.1.13/main -I/tmp/pear/temp/APC -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/APC/apc.c -o apc.lo
libtool: compile: cc -D_GNU_SOURCE -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootZlgTaM/APC-3.1.13/include -I/tmp/pear/temp/pear-build-rootZlgTaM/APC-3.1.13/main -I/tmp/pear/temp/APC -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/APC/apc.c -fPIC -DPIC -o .libs/apc.o
In file included from /tmp/pear/temp/APC/apc.c:45:0:
/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [apc.lo] Error 1
ERROR: `make' failed

any help/direction you can offer is so very appreciated...


~ Max