Installing YAF php framework and getting /usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory on Centos 6+

Hi Guys,

Yaf framework appears to be the fastest framework around, logically so because its built with C and compiled in a PHP extension.

While installing Yaf, I ran into a problem where it seems like make was complaining about pcre.h missing and progress get halted at

make: *** [yaf_router.lo] Error 1 ERROR: `make’ failed

To solve this first I would like to point out to run a yum update

Secondly make sure you have all of the stuff below

and now you should install yaf normally through pecl now as shown below

This should work now, and finally you should add the compiled so extension to php.ini file

add line below

Once this is done restart your apache service and yaf as module will now be available with all its APIs and stuff

I hope this helps. If I missed a point or 2 please leave your comment for others to benefit from.

Cheers,

 

VN:R_U [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VN:R_U [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply