ID:               19340
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         OCI8 related
 Operating System: SuSE Linux 7.3
 PHP Version:      4.2.3
 New Comment:

Same problem with me. I have discovered two problems with OCI8 and
Oracle 9.2:

1. 32/64 bits environment ? You have to use .../lib or .../lib32
libraries.
2. Bug in the configure file (initially the bug is ext/oci8/config.m4)

I finally get a correct installation by doing the following changes in
the configure file:

if test -s "$OCI8_DIR/orainst/unix.rgs"; then
replaced by:
if test -s "$OCI8_DIR/install/unix.rgs"; then

OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed 's/ 
*/:/g' | cut -d: -f 6 | cut -c 2-4`
replaced by:
OCI8_VERSION=`grep rdbms $OCI8_DIR/install/unix.rgs |sed 's/  */:/g' |
cut -d: -f 2| cut -c 1-3`

8.1|9.0)
replaced by:
8.1|9.0|9.1|9.2)

and for my own environment (AIX):
OCI8_DIR/lib changed to OCI8_DIR/lib32
OCI8_DIR/rdbms/lib changed to OCI8_DIR/rdbms/lib32

I hope this can help you.


Previous Comments:
------------------------------------------------------------------------

[2002-09-11 09:56:21] [EMAIL PROTECTED]

Oracle Development Kit 9.2.0.1.0 ist installed.

There is no clntsh.so installed but I found 
/oracle/product/901/lib/libclntsh.so
and
/oracle/product/901/bin/genclntsh
The path /oracle/product/901/lib/ is set correctly in the
LD_LIBRARY_PATH

------------------------------------------------------------------------

[2002-09-10 17:03:58] [EMAIL PROTECTED]

Did you install oracle development tools? Could you try locating
clntsh.so on your system?

------------------------------------------------------------------------

[2002-09-10 12:36:41] [EMAIL PROTECTED]

Thanks for the information.

So, I tried to compile this version with the same configure params, but
now it fails soon to configure with "libpng not found!"

I think, this problem based on the combination with the pdf-lib.

------------------------------------------------------------------------

[2002-09-10 12:07:13] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

------------------------------------------------------------------------

[2002-09-10 11:44:27] [EMAIL PROTECTED]

The compilation of PHP 4.2.3 with correct environment (.profile of
oracle user) with Oracle 9i and Apache 1.3.26 failed. The configure
params are:

./configure \
--with-apache=/usr/src/linux/apache \
--with-config-file-path=/etc/httpd \
--with-gd \
--with-png-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-zlib=yes \
--with-freetype-dir=/usr/lib \
--with-pdflib=/usr/local \
--enable-shared-pdflib \
--with-oci8=/apps/oracle/product/901 \
--with-xml \
--with-ttf \
--with-ftp \
--enable-track-vars \
--enable-sigchild \
--enable-versioning \
--enable-track-vars \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sysvsem \
--enable-sysvshm \
--enable-thread-safety \

It failed with following output after testing out some configurations
while compiling apache as php built-in:

/usr/i486-suse-linux/bin/ld: cannot find -lclntsh

The LD-Library-Path and the ORA-environment are correctly set.

regards... olaf

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19340&edit=1

Reply via email to