ID: 39312
Comment by: fernando dot wendt at gmail dot com
Reported By: andrew dot nagy at villanova dot edu
Status: Assigned
Bug Type: PDO related
Operating System: Linux
PHP Version: 5.2.4
Assigned To: sixd
New Comment:
More info about the lastest Oracle Instant Client under Linux: i'm
configuring a web server with Apache2.2.11, PHP5.2.8, and OIC11.1, and
PDO compile only works with this syntax:
./configure --with-oci8=shared,instantclient,/usr/lib/oracle
--with-pdo-oci=instantclient,/usr/lib/oracle,11.1
Presuming /usr/lib/oracle is your Instant Client base directory. The
great stuff is pass the version number at the command line, just as
Andrew point us.
Thanks a lot, and i do suggest you to put this detail on the online
documentation website, at installing PDO Oracle.
Best regards.
Previous Comments:
------------------------------------------------------------------------
[2007-09-27 09:56:50] jani@php.net
Chris, can you check this out please?
------------------------------------------------------------------------
[2007-09-25 22:08:48] tony2001@php.net
Yeah, but I never maintained PDO_OCI.
------------------------------------------------------------------------
[2007-09-25 09:53:13] jani@php.net
Tony, I wasn't sure to whom to assign this but you're one of the oci8
maintainers AFAIK. :)
------------------------------------------------------------------------
[2007-09-24 21:20:56] andrew dot nagy at villanova dot edu
I just did an install of php 5.2.4 on a brand new RHEL server. The
only way I could get this to work is by using the zip files provided by
Oracle, not the RPMs. Both the Basic and SDK are need (well I am
assuming the Basic is needed). Once I unzip the files, I needed to
create 2 symbolic links -- both libclntsh.so and libocci.so.
Could this be fixed in the configure script to look for the original
files instead of the renamed files?
For now - I have created a patch that makes the language a bit more
intuitive if this helps at all. It is diff'ed against the 5.2.4
release.
1305,1306c1305,1306
< Use
--with-pdo-oci=instantclient,/path/to/instantclient,version
< for an Oracle Instant Client SDK
install.
---
> Use
--with-pdo-oci=instantclient,prefix,version
> for an Oracle Instant Client SDK.
73096c73096
< { echo "configure: error: I'm too dumb to figure out where the
include dir is in your Instant Client install" 1>&2; exit 1; }
---
> { echo "configure: error: Cannot find the Instant Client SDK in
your Instant Client install" 1>&2; exit 1; }
73105c73105
< { echo "configure: error: I'm too dumb to figure out where the
libraries are in your Instant Client install" 1>&2; exit 1; }
---
> { echo "configure: error: Cannot find the libclntsh.so file.
Try making a symbolic link in your Instant Client SDK install" 1>&2;
exit 1; }
------------------------------------------------------------------------
[2006-11-08 21:37:15] tony2001@php.net
If you know how exactly to make it more verbose and clear - we would
gladly accept your patch for ext/pdo_oci/config.m4.
See here:
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_oci/config.m4?revision=1.14.2.5&view=markup
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39312
--
Edit this bug report at http://bugs.php.net/?id=39312&edit=1