Re: Building PHP w/ Oracle woes...

[email protected]
Newsgroups gmane.comp.db.oracle.devel
Message-ID <LYRIS-1796914-813367-2002.12.27-18.00.48--gcdod-oracle#[email protected]>
Hi,  your problem is the oracle headers.

To compile php with oracle support you need install oracle client with headers
suppor. To solve this problem try with:

1) Run oracle universal installer as oracle user, select client oracle
installation and customize your installation. Select oracle headers and finish
install.

2) Export all oracle environment to root user. (ORACLE_SID,
ORACLE_HOME,ORACLE_BASE,etc)  

3)  Change to php source home and run configure.

./configure --with-apxs=/usr/apache/bin/apxs --enable-track-vars
--with-oci8=/usr/oracle --with-mysql --enable-sigchild
--with-config-file-path=/etc/php

4) To verify Oracle 8i support take a look on phpinfo script:
<?phpinfo()?>

you can look this

oci8
OCI8 Support enabled
Revision $Revision: 1.169.2.3 $
Oracle Version 8.1
Compile-time ORACLE_HOME <YOUR ORACLE HOME>
Libraries Used  


GOOD LUCK!!!


LM



Quoting WH Micro <[email protected]>:

> Hello:
> 
> I am trying to build PHP with Oracle 8i support and
> I've come to a dead end. I've done some research and
> can't really find much information on it. I would
> apreciate if you can help solve this problem.
> 
> I have Apache, Oracle 8i Client, and MySQL on a Debian
> 3.0 box.
> 
> This is how I configured it:
> 
> ./configure -v  --with-apxs=/usr/apache/bin/apxs
> --enable-track-vars --with-oci8=/usr/oracle
> --with-mysql --enable-sigchild
> --with-config-file-path=/etc/php
> 



Quoting WH Micro <[email protected]>:

> Hello:
> 
> I am trying to build PHP with Oracle 8i support and
> I've come to a dead end. I've done some research and
> can't really find much information on it. I would
> apreciate if you can help solve this problem.
> 
> I have Apache, Oracle 8i Client, and MySQL on a Debian
> 3.0 box.
> 
> This is how I configured it:
> 
> ./configure -v  --with-apxs=/usr/apache/bin/apxs
> --enable-track-vars --with-oci8=/usr/oracle
> --with-mysql --enable-sigchild
> --with-config-file-path=/etc/php
> 
> I also tried the --with-oracle=/usr/oracle option and
> I get the same error when trying to make PHP:
> 
> debian:~/build/php-4.2.3# make
> Making all in Zend
> make[1]: Entering directory
> `/root/build/php-4.2.3/Zend'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/root/build/php-4.2.3/Zend'
> Making all in main
> make[1]: Entering directory
> `/root/build/php-4.2.3/main'
> make[2]: Entering directory
> `/root/build/php-4.2.3/main'
> /bin/sh /root/build/php-4.2.3/libtool --silent
> --mode=compile gcc  -I. -I/root/build/php-4.2.3/main
> -I/root/build/php-4.2.3/main -I/root/build/php-4.2.3
> -I/usr/apache/include -I/root/build/php-4.2.3/Zend
> -I/root/build/php-4.2.3/ext/mysql/libmysql
> -I/usr/oracle/rdbms/demo
> -I/root/build/php-4.2.3/ext/xml/expat  -DLINUX=22
> -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DUSE_EXPAT
> -I/root/build/php-4.2.3/TSRM -g -O2 -prefer-pic  -c
> internal_functions.c
> In file included from internal_functions.c:34:
> /root/build/php-4.2.3/ext/oci8/php_oci8.h:52: oci.h:
> No such file or directory
> make[2]: *** [internal_functions.lo] Error 1
> make[2]: Leaving directory
> `/root/build/php-4.2.3/main'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/root/build/php-4.2.3/main'
> make: *** [all-recursive] Error 1
> 
> 
> If you need more info on this please let me know.
> 
> Thanks in advance for all your help.
> 
> 
> 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or 
> to unsubscribe send a blank email to %%email.unsub%%.
> 



---
Change your mail options at http://p2p.wrox.com/manager.asp or 
to unsubscribe send a blank email to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.