Hello all!
I've succesfully, installed Apache, PHP, and PostgreSQL...gotten them all to work. Now turning my attention to try to create some useful PHP/Apache apps here at work to work with my Oracle databases. On my first try, I got this error:
Fatal error: Call to undefined function: ora_logon() in /home/httpd/php/oracle_test.php on line 10
When looked around for this error, most posts indicted that Oracle support had not been compiled into PHP. I looked in the phpinfo() page I created, and sure enough, I did not see anything like:
--with-oracle=/path/to/oracle/home/dir
--with-oci8=/path/to/oracle/home/dir
Here is the info from the phpinfo() call:
'./configure' '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--without-readline' '--with-apxs=/usr/sbin/apxs' '--without-db3' '--without-db4' '--without-db2' '--with-mcrypt=/usr' '--with-mhash' '--with-interbase=/opt/interbase' '--with-ming=/usr' '--with-swf=/usr' '--with-sybase=/usr' '--with-gdbm=/usr' '--with-java=/opt/blackdown-jdk-1.4.1' '--with-mcal=/usr' '--with-unixODBC=/usr' '--with-pgsql=/usr' '--with-snmp' '--enable-ucd-snmp-hack' '--with-xpm-dir=/usr/X11R6' '--with-pdflib=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-png-dir=/usr' '--with-jpeg' '--with-jpeg-dir=/usr' '--enable-exif' '--without-jpeg' '--with-tiff-dir=/usr' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-ttf' '--with-t1lib' '--with-gettext' '--with-qtdom' '--with-pspell' '--with-openssl' '--without-curl' '--with-imap' '--with-ldap' '--with-dom' '--with-dom-xslt' '--with-kerberos' '--with-pam' '--disable-memory-limit' '--disable-ipv6' '--enable-dbx' '--with-imap-ssl' '--with-zlib' '--with-zlib-dir=/usr/lib' '--with-sablot=/usr' '--enable-xslt' '--with-xslt-sablot' '--with-xmlrpc' '--enable-wddx' '--with-xml' '--enable-mbstring' '--enable-mbregex' '--with-bz2' '--with-crack' '--with-ndbm' '--with-cdb' '--enable-bcmath' '--enable-calendar' '--enable-dbase' '--enable-filepro' '--enable-ftp' '--with-mime-magic' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvipc' '--with-iconv' '--enable-shmop' '--enable-dio' '--enable-inline-optimization' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--with-config-file-path=/etc/php/apache1-php4'
I checked my USE flags in make.conf, and I to have oci8 in there:
USE="X -gtk -gnome alsa acl acpi arts avi -cdr crypt cups dga emacs encode esd fbcon firebird flash freetds gd gdbm gif gphoto2 gpm guile imap imlib innodb jack java jikes jpeg kde kerberos ladcca lcms ldap libwww mbox mcal mysql nas ncurses nls oci8 odbc oggvorbis opengl oss pam pcmcia pdflib perl png pnp postgres python qt quicktime readline samba sdl snmp spell sse ssl svga tcltk tetex tiff truetype usb Xaw3d xml xml2 xmms sv zeo zlib x86"
So, my question is...what happened? How do I get oracle support compiled into PHP on my Gentoo box?
Thanks in advance!!
cayenne



