The following error occurred while executing make:
In file included from/root/yaf-2.1.2/yaf_router.c:28:
/usr/include/php/ext/pcre/php_pcre.h:29:18:error:pcre.h:no such file or directory
In file included from/root/yaf-2.1.2/yaf_router.c:28:
/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 '
Make: * * [Yaf_router.lo] Error 1
CentOS solution below: # Yum install Pcre-devel
Ubuntu Solution below:
sudo apt-get update
sudo apt-get install libpcre3 Libpcre3-dev
You may also need to install
sudo apt-get install OpenSSL Libssl-dev
PHP Install YAF problem solving under Ubuntu