php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58552 PECL won't compile APC: apc.c errors
Submitted: 2009-02-15 14:19 UTC Modified: 2009-05-16 01:08 UTC
From: semenko at tech dot mit dot edu Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.0 OS: Debian (Etch)
Private report: No CVE-ID: None
 [2009-02-15 14:19 UTC] semenko at tech dot mit dot edu
Description:
------------
Build fails when trying to install 3.1.2 (currently using 3.0.19) with "pecl -d preferred_state=beta upgrade APC".

PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519

1. Enable per request file info about files used from the APC cache : no

1. Enable spin locks (EXPERIMENTAL) : no

---------

Note that this also fails (with the same message while trying to make) when I try to build it manually, using:
# phpize
# /configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/bin/php-config


Reproduce code:
---------------
building in /var/tmp/pear-build-root/APC-3.1.2
running: /tmp/pear/temp/APC/configure --enable-apc-filehits=no --enable-spinlocks=no

..... [the config works fine] ...

running: make
/bin/sh /var/tmp/pear-build-root/APC-3.1.2/libtool --mode=compile gcc  -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.2/include -I/var/tmp/pear-build-root/APC-3.1.2/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  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/APC/apc.c -o apc.lo
mkdir .libs
 gcc -I. -I/tmp/pear/temp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.2/include -I/var/tmp/pear-build-root/APC-3.1.2/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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/APC/apc.c  -fPIC -DPIC -o .libs/apc.o
/tmp/pear/temp/APC/apc.c:38:31: error: ext/pcre/php_pcre.h: No such file or directory
/tmp/pear/temp/APC/apc.c:362: error: expected specifier-qualifier-list before 'pcre'
/tmp/pear/temp/APC/apc.c: In function 'apc_regex_compile_array':
/tmp/pear/temp/APC/apc.c:419: error: 'apc_regex' has no member named 'preg'
/tmp/pear/temp/APC/apc.c:419: error: 'apc_regex' has no member named 'preg'
/tmp/pear/temp/APC/apc.c:420: error: 'apc_regex' has no member named 'nreg'
/tmp/pear/temp/APC/apc.c:420: error: 'apc_regex' has no member named 'nreg'
/tmp/pear/temp/APC/apc.c: In function 'apc_regex_match_array':
/tmp/pear/temp/APC/apc.c:452: error: 'apc_regex' has no member named 'preg'
/tmp/pear/temp/APC/apc.c:452: error: 'apc_regex' has no member named 'preg'
/tmp/pear/temp/APC/apc.c:453: error: 'apc_regex' has no member named 'nreg'
/tmp/pear/temp/APC/apc.c:453: error: 'apc_regex' has no member named 'nreg'
make: *** [apc.lo] Error 1
ERROR: `make' failed



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-16 18:29 UTC] shire@php.net
It looks like these header files were not being properly installed until php-5.2.2 and above.  Is it possible for you to try upgrading to a new php version and seeing if this resolves your APC compilation errors?  Alternatively, if you re-compile your existing PHP with the bundled pcre library it should work as well.
 [2009-02-16 21:59 UTC] semenko at tech dot mit dot edu
I can't upgrade, unfortunately. Thanks though!
 [2009-02-25 04:29 UTC] karsten dot eichentopf at comm-press dot net
Debian Etch fresh install and the same error. As I use their php package I can't recompile it.
 [2009-03-02 02:42 UTC] shire@php.net
Just checked in some changes that should fix this, can you all try the latest CVS version of APC and let me know how it goes?
 [2009-03-05 10:48 UTC] karsten dot eichentopf at comm-press dot net
I did checkout HEAD
/* $Id: apc.c,v 3.36 2009/03/02 07:42:25 shire Exp $ */


 gcc -I. -I/opt/APC/HEAD -DPHP_ATOM_INC -I/opt/APC/HEAD/include -I/opt/APC/HEAD/                            main -I/opt/APC/HEAD -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 -DHAVE_CONFIG_H -g -O2 -c /opt/APC/HEAD/apc.c  -fPIC -DPIC -o .libs                            /apc.o
/opt/APC/HEAD/apc.c:41:29: error: php_pcre.h: No such file or directory
/opt/APC/HEAD/apc.c:368: error: expected specifier-qualifier-list before 'pcre'
/opt/APC/HEAD/apc.c: In function 'apc_regex_compile_array':
/opt/APC/HEAD/apc.c:429: error: 'apc_regex' has no member named 'preg'
/opt/APC/HEAD/apc.c:429: error: 'apc_regex' has no member named 'preg'
/opt/APC/HEAD/apc.c:430: error: 'apc_regex' has no member named 'nreg'
/opt/APC/HEAD/apc.c:430: error: 'apc_regex' has no member named 'nreg'
/opt/APC/HEAD/apc.c: In function 'apc_regex_match_array':
/opt/APC/HEAD/apc.c:462: error: 'apc_regex' has no member named 'preg'
/opt/APC/HEAD/apc.c:462: error: 'apc_regex' has no member named 'preg'
/opt/APC/HEAD/apc.c:463: error: 'apc_regex' has no member named 'nreg'
/opt/APC/HEAD/apc.c:463: error: 'apc_regex' has no member named 'nreg'
make: *** [apc.lo] Error 1


Sorry, same Bug but 10 lines later :-/
 [2009-03-13 20:51 UTC] shire@php.net
That's my mistake I left out a file for this fix, can you please 'cvs up' and try to rebuild with a 'make clean && make'?
 [2009-03-16 07:30 UTC] karsten dot eichentopf at comm-press dot net
Did build and seems to run fine :)

But I had some errors. Don't know if they are important so I just post them so you can see them.


--------------

APC Version	3.1.2
PHP Version	5.2.0-8+etch13
APC Host	prov04.dxtribute.net
Server Software	Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 mod_ssl/2.2.3 OpenSSL/0.9.8c
Shared Memory	1 Segment(s) with 256.0 MBytes
(mmap memory, pthread mutex locking)
Start Time	2009/03/16 13:30:06
Uptime	0 minutes
File Upload Support	1


--------------


/opt/APC/APC-HEAD-16.03.2009/apc_cache.c: In function '_apc_cache_insert':
/opt/APC/APC-HEAD-16.03.2009/apc_cache.c:368: warning: passing argument 1 of 'zend_inline_hash_func' discards qualifiers from pointer target type
/opt/APC/APC-HEAD-16.03.2009/apc_cache.c: In function 'apc_cache_user_insert':
/opt/APC/APC-HEAD-16.03.2009/apc_cache.c:447: warning: passing argument 1 of 'zend_inline_hash_func' discards qualifiers from pointer target type
/opt/APC/APC-HEAD-16.03.2009/apc_cache.c: In function 'apc_cache_find_slot':
/opt/APC/APC-HEAD-16.03.2009/apc_cache.c:540: warning: passing argument 1 of 'zend_inline_hash_func' discards qualifiers from pointer target type
/opt/APC/APC-HEAD-16.03.2009/apc_cache.c: In function 'apc_cache_delete':
/opt/APC/APC-HEAD-16.03.2009/apc_cache.c:708: warning: passing argument 1 of 'zend_inline_hash_func' discards qualifiers from pointer target type

--------------

Thanks for your effort! :)
 [2009-03-16 12:35 UTC] shire@php.net
Great thanks for verifying the fix, (the warnings should be ok thank you for reporting them).
 [2009-05-14 20:06 UTC] jerry at metalcat dot net
I'm getting the same :

------------------------
In file included from /tmp/pear/download/APC-3.1.2/pecl/apc/apc.c:43:
/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /tmp/pear/download/APC-3.1.2/pecl/apc/apc.c:43:
/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'
/tmp/pear/download/APC-3.1.2/pecl/apc/apc.c:368: error: expected specifier-qualifier-list before 'pcre'
/tmp/pear/download/APC-3.1.2/pecl/apc/apc.c: In function 'apc_regex_compile_array':
/tmp/pear/download/APC-3.1.2/pecl/apc/apc.c:429: error: 'apc_regex' has no member named 'preg'
/tmp/pear/download/APC-3.1.2/pecl/apc/apc.c:429: error: 'apc_regex' has no member named 'preg'
/tmp/pear/download/APC-3.1.2/pecl/apc/apc.c:430: error: 'apc_regex' has no member named 'nreg'
/tmp/pear/download/APC-3.1.2/pecl/apc/apc.c:430: error: 'apc_regex' has no member named 'nreg'
/tmp/pear/download/APC-3.1.2/pecl/apc/apc.c: In function 'apc_regex_match_array':
/tmp/pear/download/APC-3.1.2/pecl/apc/apc.c:462: error: 'apc_regex' has no member named 'preg'
/tmp/pear/download/APC-3.1.2/pecl/apc/apc.c:462: error: 'apc_regex' has no member named 'preg'
/tmp/pear/download/APC-3.1.2/pecl/apc/apc.c:463: error: 'apc_regex' has no member named 'nreg'
/tmp/pear/download/APC-3.1.2/pecl/apc/apc.c:463: error: 'apc_regex' has no member named 'nreg'
make: *** [apc.lo] Error 1
----------------

Running the latest CVS too.

Any ideas ? 

Thanks,
Jerry
 [2009-05-15 03:16 UTC] shire@php.net
This looks slightly different, as pcre.h isn't found (vs. php_pcre.h).  Can you verify that you have the PCRE library header files installed on your system.  You should have a pcre.h installed in one of the include paths for your system.
 [2009-05-15 13:21 UTC] jerry at metalcat dot net
A quick hunt gave me this :

# locate pcre.h
/usr/include/php/ext/pcre/php_pcre.h
/var/www/phpdoc/book.pcre.html
/var/www/phpdoc/intro.pcre.html
/var/www/phpdoc/ref.pcre.html

So there is a php_pcre.h, but not a pcre.h

Trying to sort out pcre.h now !
 [2009-05-15 13:41 UTC] jerry at metalcat dot net
Yup, helps if you have it installed ;)

yum install pcre-devel

Cheers for the response.
 [2009-05-16 01:08 UTC] shire@php.net
Great, thanks for the report/verification.
 [2009-06-07 10:46 UTC] net_z at sohu dot com
sudo apt-get install libpcre3-dev
 [2009-09-01 05:01 UTC] florin dot diaconeasa at gmail dot com
Hi,

I'm getting a similar problem upon compiling the APC 
extension:

/bin/sh /Users/florin/Downloads/APC-3.1.2/APC-3.1.2/libtool 
--mode=compile cc  -I. -I/Users/florin/Downloads/APC-
3.1.2/APC-3.1.2 -DPHP_ATOM_INC -
I/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/include -
I/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/main -
I/Users/florin/Downloads/APC-3.1.2/APC-3.1.2 -
I/opt/local/include/php -I/opt/local/include/php/main -
I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -
I/opt/local/include/php/ext -
I/opt/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -
O2   -c /Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c -o 
apc.lo 
mkdir .libs
 cc -I. -I/Users/florin/Downloads/APC-3.1.2/APC-3.1.2 -
DPHP_ATOM_INC -I/Users/florin/Downloads/APC-3.1.2/APC-
3.1.2/include -I/Users/florin/Downloads/APC-3.1.2/APC-
3.1.2/main -I/Users/florin/Downloads/APC-3.1.2/APC-3.1.2 -
I/opt/local/include/php -I/opt/local/include/php/main -
I/opt/local/include/php/TSRM -I/opt/local/include/php/Zend -
I/opt/local/include/php/ext -
I/opt/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 
-c /Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c  -fno-
common -DPIC -o .libs/apc.o
In file included from /Users/florin/Downloads/APC-3.1.2/APC-
3.1.2/apc.c:38:
/opt/local/include/php/ext/pcre/php_pcre.h:29:18: error: 
pcre.h: No such file or directory
In file included from /Users/florin/Downloads/APC-3.1.2/APC-
3.1.2/apc.c:38:
/opt/local/include/php/ext/pcre/php_pcre.h:37: error: 
expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? 
token
/opt/local/include/php/ext/pcre/php_pcre.h:38: error: 
expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? 
token
/opt/local/include/php/ext/pcre/php_pcre.h:44: error: 
expected specifier-qualifier-list before ?pcre?
/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c:362: 
error: expected specifier-qualifier-list before ?pcre?
/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c: In 
function ?apc_regex_compile_array?:
/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c:419: 
error: ?apc_regex? has no member named ?preg?
/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c:419: 
error: ?apc_regex? has no member named ?preg?
/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c:420: 
error: ?apc_regex? has no member named ?nreg?
/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c:420: 
error: ?apc_regex? has no member named ?nreg?
/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c: In 
function ?apc_regex_match_array?:
/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c:452: 
error: ?apc_regex? has no member named ?preg?
/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c:452: 
error: ?apc_regex? has no member named ?preg?
/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c:453: 
error: ?apc_regex? has no member named ?nreg?
/Users/florin/Downloads/APC-3.1.2/APC-3.1.2/apc.c:453: 
error: ?apc_regex? has no member named ?nreg?
make: *** [apc.lo] Error 1


This is on a Mac OS X Snow Leopard system. PHP version is 
5.3.0 and the APC source is 3.1.2
 [2009-09-10 19:16 UTC] alessandro dot cinelli at gmail dot com
Snow Leopard:

* Install pcre lib with macports
* download the appropriate version of the APC package http://pecl.php.net/package/APC
* Unpack it
* cd APC*
* Run phpize
* MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS=?-arch x86_64 -g -Os -pipe -no-cpp-precomp? CCFLAGS=?-arch x86_64 -g -Os -pipe? CXXFLAGS=?-arch x86_64 -g -Os -pipe? LDFLAGS=?-arch x86_64 -bind_at_load? CPPFLAGS=?-I/opt/local/include? ./configure
* cd modules
* sudo cp apc.so /usr/lib/php/extensions/no-debug-non-zts-20090626/
 [2009-11-03 04:32 UTC] mobius at forin dot gr
Hello, 

I seem to be getting a similar error yet different header files though. 

 gcc -I. -I/tmp/pear/cache/APC-3.1.3p1 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.3p1/include -I/var/tmp/pear-build-root/APC-3.1.3p1/main -I/tmp/pear/cache/APC-3.1.3p1 -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 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/cache/APC-3.1.3p1/apc.c  -fPIC -DPIC -o .libs/apc.o
/tmp/pear/cache/APC-3.1.3p1/apc.c:41:33: error: apc_php_pcre.h: No such file or directory
/tmp/pear/cache/APC-3.1.3p1/apc.c:368: error: expected specifier-qualifier-list before 'pcre'
/tmp/pear/cache/APC-3.1.3p1/apc.c: In function 'apc_regex_compile_array':
/tmp/pear/cache/APC-3.1.3p1/apc.c:429: error: 'apc_regex' has no member named 'preg'
/tmp/pear/cache/APC-3.1.3p1/apc.c:429: error: 'apc_regex' has no member named 'preg'
/tmp/pear/cache/APC-3.1.3p1/apc.c:430: error: 'apc_regex' has no member named 'nreg'
/tmp/pear/cache/APC-3.1.3p1/apc.c:430: error: 'apc_regex' has no member named 'nreg'
/tmp/pear/cache/APC-3.1.3p1/apc.c: In function 'apc_regex_match_array':
/tmp/pear/cache/APC-3.1.3p1/apc.c:462: error: 'apc_regex' has no member named 'preg'
/tmp/pear/cache/APC-3.1.3p1/apc.c:462: error: 'apc_regex' has no member named 'preg'
/tmp/pear/cache/APC-3.1.3p1/apc.c:463: error: 'apc_regex' has no member named 'nreg'
/tmp/pear/cache/APC-3.1.3p1/apc.c:463: error: 'apc_regex' has no member named 'nreg'
make: *** [apc.lo] Error 1

This is on Debian Etch trying to upgrade APC from 3.0.19 to 3.1.3p1. I've also tried to retrieve the CVS Head but I seem to be doing something wrong (I am following the instructions of the INSTALL file on the APC package)
 [2009-12-15 15:20 UTC] PandoraBox2007 at gmail dot com
yum install pcre-devel
 [2010-06-05 18:25 UTC] atrandafirc at yahoo dot com
Thanks, the make command worked after running yum install 
pcre-devel !
 [2010-12-22 16:39 UTC] public at pipercomputerservices dot com
I'm getting the same errors in my FreeBSD 6.4 VPS:

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/usr/local/bin/bash /var/tmp/pear-build-piperhosting/APC-3.1.6/libtool --mode=compile cc  -I. -I/usr/var/tmp/pear/temp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-piperhosting/APC-3.1.6/include -I/var/tmp/pear-build-piperhosting/APC-3.1.6/main -I/usr/var/tmp/pear/temp/APC -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /usr/var/tmp/pear/temp/APC/apc.c -o apc.lo
mkdir .libs
 cc -I. -I/usr/var/tmp/pear/temp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-piperhosting/APC-3.1.6/include -I/var/tmp/pear-build-piperhosting/APC-3.1.6/main -I/usr/var/tmp/pear/temp/APC -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/var/tmp/pear/temp/APC/apc.c  -fPIC -DPIC -o .libs/apc.o
In file included from /usr/var/tmp/pear/temp/APC/apc.c:44:
/usr/local/php5/include/php/ext/pcre/php_pcre.h:29:18: pcre.h: No such file or directory
In file included from /usr/var/tmp/pear/temp/APC/apc.c:44:
/usr/local/php5/include/php/ext/pcre/php_pcre.h:45: error: syntax error before '*' token
/usr/local/php5/include/php/ext/pcre/php_pcre.h:45: error: syntax error before "pcre_extra"
/usr/local/php5/include/php/ext/pcre/php_pcre.h:45: warning: data definition has no type or storage class
/usr/local/php5/include/php/ext/pcre/php_pcre.h:46: error: syntax error before '*' token
/usr/local/php5/include/php/ext/pcre/php_pcre.h:46: error: syntax error before "pcre_extra"
/usr/local/php5/include/php/ext/pcre/php_pcre.h:46: warning: data definition has no type or storage class
/usr/local/php5/include/php/ext/pcre/php_pcre.h:52: error: syntax error before "pcre"
/usr/var/tmp/pear/temp/APC/apc.c:369: error: syntax error before "pcre"
/usr/var/tmp/pear/temp/APC/apc.c: In function `apc_regex_compile_array':
/usr/var/tmp/pear/temp/APC/apc.c:430: error: structure has no member named `preg'
/usr/var/tmp/pear/temp/APC/apc.c:430: error: structure has no member named `preg'
/usr/var/tmp/pear/temp/APC/apc.c:431: error: structure has no member named `nreg'
/usr/var/tmp/pear/temp/APC/apc.c:431: error: structure has no member named `nreg'
/usr/var/tmp/pear/temp/APC/apc.c: In function `apc_regex_match_array':
/usr/var/tmp/pear/temp/APC/apc.c:463: error: structure has no member named `preg'
/usr/var/tmp/pear/temp/APC/apc.c:463: error: structure has no member named `preg'
/usr/var/tmp/pear/temp/APC/apc.c:464: error: structure has no member named `nreg'
/usr/var/tmp/pear/temp/APC/apc.c:464: error: structure has no member named `nreg'
*** Error code 1

Stop in /var/tmp/pear-build-piperhosting/APC-3.1.6.
ERROR: `make' failed



Anyone have a solution for me?
 [2010-12-22 16:41 UTC] public at pipercomputerservices dot com
Oh, and this file does exists...

/usr/local/php5/include/php/ext/pcre/php_pcre.h
 [2010-12-24 02:38 UTC] php dot net at himikeb dot com
On Ubuntu 10.04, I had to install libpcre3-dev, and that 
installed the correct pcre.h file, and then "sudo pecl 
install apc" successfully installed 3.1.6.
 [2011-01-06 09:32 UTC] beb666 at yahoo dot fr
(for info if somebody has same issue)

Upgrading from 3.0.19 (gasp) to 3.1.6 today, I had the same 
type of error ERROR: `make' failed

I installed libpcre3-dev thanks to previous comment (using 
~# aptitude install libpcre3-dev)
Then relaunched pecl upgrade apc
And it all worked fine !

(Debian Lenny9, php 5.2.6-1)
 [2011-01-13 07:02 UTC] wibleh at onemanlan dot com
OS: Centos 5.2

Thank you to PandoraBox2007, installing the pcre-devel package worked fine.  I had pcre installed but the devel package was required.

[root@localhost ~] yum install pcre-devel
 [2011-02-19 18:22 UTC] bad dot f dot word at gmail dot com
I have:


[root@server /]# pecl install apc
downloading APC-3.1.6.tgz ...
Starting to download APC-3.1.6.tgz (148,835 bytes)
.................................done: 148,835 bytes
49 source files, building
running: phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
ERROR: `phpize' failed

What kinde of headers? Maybe I have bad config? Im new to 
PECL, sorry.
 [2011-03-17 09:53 UTC] PandoraBox2007 at gmail dot com
% cd /usr/ports/lang/php5/ 
% make extract 
% cp /usr/ports/lang/php5/work/php-
5.3.5/ext/pcre/pcrelib/pcre.h /usr/local/include/php/ext/pcre/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC