  | |  | RPMs for php-oci8 for RHEL3? | RPMs for php-oci8 for RHEL3? 2005-07-21 - By Jay Lee
Back Doug Stewart wrote: > Does anyone know of a source of php-oci8 rpms for RHEL3? Failing that, > does anyone have a link to some documentation to get such capability on > an RHEL3 system? > I really, REALLY hate relying upon hacked up old Perl scripts for any > interactions I have with Oracle DBs. I'd much prefer to work in my > language of choice...
I've rebuilt the PHP rpm with mssql support numerous times. Not hard to do and oracle is no different. You will of course need the oracle client libraries installed before rebuilding. RedHat's php RPM looks for the existance of oracle-instantclient-basic RPM so get that or, if you used the .tar.gz, comment out the Require in the .spec and make sure the php configure knows where the oc client is.
As root:
up2date --get-source phpmkdir $HOME/rpm
As non-root user:
#Setup personal rpmbuild enviro: mkdir $HOME/rpm/SOURCES mkdir $HOME/rpm/SPECS mkdir $HOME/rpm/BUILD mkdir $HOME/rpm/SRPMS mkdir $HOME/rpm/RPMS mkdir $HOME/rpm/RPMS/i386 echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros
#Now install the SRPM, sources and spec file #will be installed in $HOME/rpm rpm -Uvh /var/spool/up2date/php-4.3.2-24.ent.src.rpm
#Now we're ready to rebuild php with Oracle support cd $HOME/rpm/SPECS rpmbuild -bb --define 'oracle 1' php.spec
this will generate your new PHP rpms. All you should really need to install is php-oracle since the others should be identical.
Jay -- Jay Lee Network / Systems Administrator Information Technology Dept. Philadelphia Biblical University --
-- Taroon-list mailing list Taroon-list@(protected) http://www.redhat.com/mailman/listinfo/taroon-list
Earn $52 per hosting referral at Lunarpages.
|
|
 |