5 Replies Latest reply on Jul 27, 2009 8:20 AM by Laurenz Albe

    configuring PHP + Oracle

    522124
      Hello :-)

      I need some help.

      I will try to install PHPBB3 forum using Oracle Database.

      I installed Oracle Instant Client for Linux
      oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm
      oracle-instantclient11.1-devel-11.1.0.7.0-1.x86_64.rpm

      When I will try to install oci8 I have a error: Oracle Instant Client SDK header files not found

      root@XXX tmp# pear install oci8-1.3.5.tgz
      10 source files, building
      running: phpize
      Configuring for:
      PHP Api Version: 20041225
      Zend Module Api No: 20050922
      Zend Extension Api No: 220051025
      Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client [autodetect] : instantclient,/usr/lib/oracle/11.1/client64/lib
      building in /var/tmp/pear-build-root/oci8-1.3.5
      running: /tmp/tmpEgO8CM/oci8-1.3.5/configure --with-oci8=instantclient,/usr/lib/oracle/11.1/client64/lib
      checking for egrep... grep -E
      checking for a sed that does not truncate output... /bin/sed
      checking for gcc... gcc
      checking for C compiler default output file name... a.out
      checking whether the C compiler works... yes
      checking whether we are cross compiling... no
      checking for suffix of executables...
      checking for suffix of object files... o
      checking whether we are using the GNU C compiler... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to accept ANSI C... none needed
      checking whether gcc and cc understand -c and -o together... yes
      checking if compiler supports -R... no
      checking if compiler supports -Wl,-rpath,... yes
      checking build system type... x86_64-redhat-linux-gnu
      checking host system type... x86_64-redhat-linux-gnu
      checking target system type... x86_64-redhat-linux-gnu
      checking for PHP prefix... /usr
      checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext
      checking for PHP extension directory... /usr/lib64/php/modules
      checking for PHP installed headers prefix... /usr/include/php
      checking for re2c... no
      configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
      checking for gawk... gawk
      checking for Oracle (OCI8) support... yes, shared
      checking PHP version... 5.1.6, ok
      checking how to run the C preprocessor... gcc -E
      checking for ANSI C header files... yes
      checking for sys/types.h... yes
      checking for sys/stat.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for memory.h... yes
      checking for strings.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for unistd.h... yes
      checking for long int... yes
      checking size of long int... 8
      checking checking if we're on a 64-bit platform... yes
      checking Oracle Instant Client directory... /usr/lib/oracle/11.1/client64/lib
      checking Oracle Instant Client SDK header directory... configure: error: Oracle Instant Client SDK header files not found
      ERROR: `/tmp/tmpEgO8CM/oci8-1.3.5/configure --with-oci8=instantclient,/usr/lib/oracle/11.1/client64/lib' failed


      Notes:

      Note_1
      I will set ORACLE_HOME with the command export ORACLE_HOME=/usr/lib/oracle/11.1/client64/lib

      Note_2
      root@XXX tmp# php -version
      PHP 5.1.6 (cli) (built: Dec 19 2006 11:26:44)
      Copyright (c) 1997-2006 The PHP Group
      Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

      Note_3
      [root@XXX ~] cd /etc/
      [root@XXX etc] cat redhat-release
      Red Hat Enterprise Linux Server release 5 (Tikanga)

      Regards

      David.