note 65361 modified in ref.oci8 by sixd
| From: | sixd@php.net | Date: | Thu, 10 Apr 2008 22:32:56 +0000 |
| Subject: | note 65361 modified in ref.oci8 by sixd | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-138159@lists.php.net to get a copy of this message | ||
To compile PHP 4.4.2 with OCI8 / Oracle 9i / AIX 5.2 (64-bit) / GCC
PHP will automatically compile against the Oracle 64-bit libraries, which PHP being a 32-bit app,
will cause "make" to fail (though it will configure fine). Here's how to avoid this:
1. replace your PHP's ext/oci8 directory with the latest ext/oci8 directory downloadable from
PECL - then remove the old directory entirely
2. rebuild configure by running:
./buildconf --force
...in PHP's root directory. This will rebuild the configure script.
3. using a tool like sed, in your configure file replace all instances of /path/to/oracle/lib with
/path/to/oracle/lib32 - note, this may require GNU's autoconf, m4 and gnumake.
4. export LD_LIBRARY_PATH=/path/to/oracle/lib32
5. ./configure --with-oci-8=/path/to/oracle (and any other options)
Then, the usual make and make install.
--was--
To compile PHP 4.4.2 with OCI8 / Oracle 9i / AIX 5.2 (64-bit) / GCC
PHP will automatically compile against the Oracle 64-bit libraries, which PHP being a 32-bit app,
will cause "make" to fail (though it will configure fine). Here's how to avoid this:
1. replace your PHP's ext/oci8 directory with the latest ext/oci8 directory downloadable from
PECL - then remove the old directory entirely
2. rebuild configure by running:
./buildconf --force
...in PHP's root directory. This will rebuild the configure script.
3. using a tool like sed, in your configure file replace all instances of /path/to/oracle/lib with
/path/to/oracle/lib32 - note, this may require GNU's autoconf, m4 and gnumake.
4. export LD_LIBRARY_PATH=/path/to/oracle/lib32
5. ./configure --with-oci-8=/path/to/oracle (and any other options)
Then, the usual make and make install.
http://php.net/manual/en/ref.oci8.php