error: pcre.h: No such file or directory

При сборке php5-imap поймал ошибку

/usr/local/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /usr/ports/mail/php5-imap/work/php-5.3.10/ext/imap/php_imap.c:44:
/usr/local/include/php/ext/pcre/php_pcre.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/ext/pcre/php_pcre.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/local/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before ‘pcre’
*** Error code 1
1 error
*** Error code 1

Лечение

cd /usr/ports/lang/php5
make extract
cd /usr/ports/lang/php5/work/php-5.3.10/ext/pcre/pcrelib
cp pcre.h /usr/local/include/php/ext/pcre/

Статьи по теме

0