Re: PHP4 and IB SS 6.01
| From: | Brian Clark | Date: | Tue, 25 Dec 2001 08:13:54 +0000 |
| Subject: | Re: PHP4 and IB SS 6.01 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78707@lists.php.net to get a copy of this message | ||
* Todd Cary (todd@aristesoftware.com) [Dec 24. 2001 13:46]:
> Currently, the IB SS rpm puts Interbase into /opt/interbase. Here are
> the instructions in the HowTo
OK, what you need to find are the includes for interbase. If you
installed from RPMs, you need to get the interbase "-dev" or "-devel"
equivalent also and isntall it.
> +++
> 4.Change to the PHP directory, configure PHP with PostgreSQL support
> where the PostgreSQL
> header files directory is /usr/include/pgsql, install directory
> is /usr/local/php4, build and install
> PHP:
> $ cd php-4.0.4pl1
> $ ./configure --with-pgsql=/usr/include/pgsql
> --prefix=/usr/local/php4
Just so you know, this will build PHP as a CGI, but you didn't say
whether or not you wanted this as an apache module instead. If you're
doing web-work with this, which I'd think you are, then you'll need
either --with-apxs or --with-apache=[apache's-source-dir] to build PHP
as an Apache module.
> $ make
> $ make install
> +++
> Using
> $./configure --with-interbase=/opt/interbase
> --prefix=/usr/local/php4
> produces an error: "Cannot find httpd.h" or something close to that.
Install the interbase "-devel" package, then try one of these:
$./configure \
--with-interbase=/opt \
--with-apxs
or..
$./configure \
--with-interbase=/usr \
--with-apxs
or..
$./configure \
--with-interbase=/usr/local \
--with-apxs
or..
If you don't want an apache module built, leave off --with-apxs and
it'll create a standalone PHP executable (probably in
/usr/local/bin/php unless you use --prefix=/usr in your configure line)
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
5 out of 4 people have trouble with fractions.