APCの追加

pecl install APC

/etc/php.d/apc.iniを作成して下の行を入れる。
extension=apc.so

エラー3
In file included from /var/tmp/APC/apc.c:44:
/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /var/tmp/APC/apc.c:44:
/usr/include/php/ext/pcre/php_pcre.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/php/ext/pcre/php_pcre.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/php/ext/pcre/php_pcre.h:52: error: expected specifier-qualifier-list before 'pcre'
/var/tmp/APC/apc.c:393: error: expected specifier-qualifier-list before 'pcre'
/var/tmp/APC/apc.c: In function 'apc_regex_compile_array':
/var/tmp/APC/apc.c:454: error: 'apc_regex' has no member named 'preg'
/var/tmp/APC/apc.c:454: error: 'apc_regex' has no member named 'preg'
/var/tmp/APC/apc.c:455: error: 'apc_regex' has no member named 'nreg'
/var/tmp/APC/apc.c:455: error: 'apc_regex' has no member named 'nreg'
/var/tmp/APC/apc.c: In function 'apc_regex_match_array':
/var/tmp/APC/apc.c:487: error: 'apc_regex' has no member named 'preg'
/var/tmp/APC/apc.c:487: error: 'apc_regex' has no member named 'preg'
/var/tmp/APC/apc.c:488: error: 'apc_regex' has no member named 'nreg'
/var/tmp/APC/apc.c:488: error: 'apc_regex' has no member named 'nreg'
make: *** [apc.lo] エラー 1
ERROR: `make' failed

このようなエラーが出たら下を実行してから再インストールすればOK
yum install pcre-devel

エラー2
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 source files, building
running: phpize
sh: phpize: command not found
ERROR: `phpize' failed

このようなエラーが出たら下を実行してから再インストールすればOK
yum -y install php-devel

エラー1
yumの期限切れ、fc5だったので下のサイトを参考にしました。
http://tmcosmos.org/linux/fedora/fc5.html#yum