[php-maint] sarge PHP oracle

Kai Hendry hendry at iki.fi
Thu Oct 27 00:49:20 UTC 2005


On 2005-10-24T23:07+1000 Adam Conrad wrote:
> Rather than backporting, it's probably about 10 billion times less
> intrusive to install php4-dev, cp "ext/oci8/" from the 4.4.0 source to
> another directory somewhere, "cd oci8 && phpize4", then configure with
> the line below:
> > --with-oci8-instant-client=/home/hendry/oracle/instantclient_10_2 \
> That will produce an extension built against Sarge's php4, which means
> you can keep running official packages and not forgo security support on
> your work systems.

Could you elaborate on this? I tried quickly with php5-dev and got
stuck. I've probably gone about this all wrong, but I couldn't find any
docs about build php packages except for PEAR stuff, which is different,
right?

sudo cp -r /home/hendry/php5source/php5-5.0.5/ext/oci8/ /usr/include/php5/ext/

frodo$ ls /usr/include/php5/ext/
dom  iconv  libxml  mbstring  oci8  session  standard  xml
frodo$ cd /usr/include/php5/ext/oci8/
frodo$ sudo php
php          php5         php5-cgi     php-cgi      php-config   php-config4  php-config5  phpize       phpize4      phpize5
frodo$ sudo phpize
Configuring for:
PHP Api Version:         20031224
Zend Module Api No:      20041030
Zend Extension Api No:   220040412
frodo$

Added: --with-oci8-instant-client=/home/hendry/oracle/instantclient_10_2
to
/usr/include/php5/main/build-defs.h

Urm, what now?

I want to build/generate a php5-oci8 Debian package.

Best wishes,



More information about the pkg-php-maint mailing list