Bug #60901 [Csd]: Oracle-11.2 is not detected (too new)
| From: | sixd@php.net | Date: | Fri, 14 Sep 2012 07:20:07 +0000 |
| Subject: | Bug #60901 [Csd]: Oracle-11.2 is not detected (too new) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173433@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60901&edit=1
ID: 60901
Updated by: sixd@php.net
Reported by: lzsiga at freemail dot c3 dot hu
Summary: Oracle-11.2 is not detected (too new)
Status: Closed
Type: Bug
Package: OCI8 related
Operating System: AIX 6.1
PHP Version: 5.3.9
Assigned To: sixd
Block user comment: N
Private report: N
New Comment:
I merged the "tail" fix. I'm closing this bug out. I understand you'll need to
create a symlink like other platforms.
Previous Comments:
------------------------------------------------------------------------
[2012-09-14 07:18:13] sixd@php.net
Automatic comment on behalf of sixd
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bbf5978e2641d924c2d4d1c47210756943a28f7b
Log: Fixed bug #60901 (Improve "tail" syntax for AIX installation)
------------------------------------------------------------------------
[2012-09-13 08:16:20] lzsiga at freemail dot c3 dot hu
A new aspect of this problem: an over-zealous version of 'tail' wouldn't accept
syntax 'tail -1' only 'tail -n1'
(in this line in configure:
OCI8_LCS=
ls $OCI8_LCS_BASE.*.1 2> /dev/null | tail -1 # Oracle 10g, 11g etc
)
------------------------------------------------------------------------
[2012-02-23 21:42:00] sixd@php.net
What created libclntsh.so.11.2? The instantclient-basic-aix.ppc64-
11.2.0.3.0.zip
and instantclient-basic-aix.ppc32-11.2.0.3.0.zip files only contain libclntsh.so
I don't consider creating a libcntsh.so.11.1 symlink such a hack, since creating
the reverse symlink is required on other platforms. See
http://docs.oracle.com/cd/E11882_01/appdev.112/e10646/oci01int.htm#LNOCI16174
However I can improve the installation experience on AIX once I understand what
the installed environment commonly looks like.
------------------------------------------------------------------------
[2012-01-30 05:56:56] lzsiga at freemail dot c3 dot hu
It might work, but I wouldn't want to hack around in the Oracle's directory... could you
please add an option to ./configure prevent the version-autodetecting? Something like:
OCI8_VERSION=11.2 ./configure --with-oci8
or
export OCI8_VERSION="$(grep OCI_MAJOR_VERSION $ORACLE_HOME/rdbms/public/oci.h | cut -d'
' -f 4).$(grep OCI_MINOR_VERSION $ORACLE_HOME/rdbms/public/oci.h | cut -d' ' -f
4)"
./configure --with-oci8
------------------------------------------------------------------------
[2012-01-27 20:47:04] sixd@php.net
Instead of patching the configuration script can you try creating a symbolic
link from libclntsh.so and/or libclntsh.so.11.1 pointing to libclntsh.so.11.2?
For ORACLE_HOME installs on Linux (and likely on Solaris) a symbolic link from
libclntsh.so to libclntsh.so.11.1 is automatically created during Oracle
installation.
Linux & Solaris 11.2 Instant Client zip installs provide libclntsh.so.11.1 (for
drop-in library replacement similar to how Oracle 10.2 libs were called *.10.1).
Generic installation instructions for Instant Client are to manually create a
symbolic link from libclntsh.so to libclntsh.so.11.1
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=60901
--
Edit this bug report at https://bugs.php.net/bug.php?id=60901&edit=1