Answer the question
In order to leave comments, you need to log in
Compiling PHP with PCRE extension?
There is a server based on Ubuntu 9.10. There are PHP 5.3.6 sorts. Task: Compile PHP with PCRE (I know you can install PHP via apt-get install, that's not the question).
Among the ./configure options for PHP is this:
--with-pcre-regex=DIR Include Perl Compatible Regular Expressions support.
DIR is the PCRE install prefix [BUNDLED]
apt-get install libpcre3 libpcre3-dev
pcre: /usr/include/pcre.h /usr/share/man/man3/pcre.3.gz
Answer the question
In order to leave comments, you need to log in
in php 5 pcre is included in the sorts, php is built with pcre by default, no separate flags need to be specified for configure.
To answer a more general question:
This is usually /usr or /usr/local, depending on the OS.
For FreeBSD, /usr/local will be typical, for Debian - /usr
. this is a folder against which you can write /lib to get the libs folder, and/or /include to get the headers folder.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question