troubleshooting Question

OCI8 PHP install on Redhat Linux Enterprise 5 64 bit

Avatar of Tbone3434
Tbone3434 asked on
Oracle DatabasePHPLinux Distributions
5 Comments1 Solution4383 ViewsLast Modified:
Hello,  I am having a difficult time getting OCI8 support compiled for PHP on a Redhat  Linux Enterprise 5 64 bit box.  I have been trying pecl install oci8 and the installation starts but ends up kicking out errors as you will see in the included log below.  I have oracle client 11.1.0.6.0 installed and my variables are currently set like this:

ORACLE_BASE=/opt/dbms/oracle
export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.1.0.6.0_client64
export ORACLE_HOME

Any help I could get would be greatly appreciated!  Thanks!
/tmp/pear/temp/oci8/oci8.c:3170: error: 'php_oci_spool' has no member named 'poolname_len'
/tmp/pear/temp/oci8/oci8.c:3171: error: 'zend_oci_globals' has no member named 'debug_mode'
/tmp/pear/temp/oci8/oci8.c:3171: error: 'zend_oci_globals' has no member named 'in_call'
/tmp/pear/temp/oci8/oci8.c:3171: error: 'dvoid' undeclared (first use in this function)
/tmp/pear/temp/oci8/oci8.c:3171: error: expected expression before ')' token
/tmp/pear/temp/oci8/oci8.c:3171: error: invalid operands to binary *
/tmp/pear/temp/oci8/oci8.c:3171: error: 'zend_oci_globals' has no member named 'in_call'
/tmp/pear/temp/oci8/oci8.c:3175: error: 'php_oci_spool' has no member named 'poolh'
/tmp/pear/temp/oci8/oci8.c:3176: error: 'zend_oci_globals' has no member named 'debug_mode'
/tmp/pear/temp/oci8/oci8.c:3176: error: 'zend_oci_globals' has no member named 'in_call'
/tmp/pear/temp/oci8/oci8.c:3176: error: expected expression before ')' token
/tmp/pear/temp/oci8/oci8.c:3176: error: invalid operands to binary *
/tmp/pear/temp/oci8/oci8.c:3176: error: 'zend_oci_globals' has no member named 'in_call'
/tmp/pear/temp/oci8/oci8.c:3179: error: 'php_oci_spool' has no member named 'err'
/tmp/pear/temp/oci8/oci8.c:3180: error: 'zend_oci_globals' has no member named 'debug_mode'
/tmp/pear/temp/oci8/oci8.c:3180: error: 'zend_oci_globals' has no member named 'in_call'
/tmp/pear/temp/oci8/oci8.c:3180: error: expected expression before ')' token
/tmp/pear/temp/oci8/oci8.c:3180: error: invalid operands to binary *
/tmp/pear/temp/oci8/oci8.c:3180: error: 'zend_oci_globals' has no member named 'in_call'
/tmp/pear/temp/oci8/oci8.c:3183: error: 'php_oci_spool' has no member named 'env'
/tmp/pear/temp/oci8/oci8.c:3184: error: 'zend_oci_globals' has no member named 'debug_mode'
/tmp/pear/temp/oci8/oci8.c:3184: error: 'zend_oci_globals' has no member named 'in_call'
/tmp/pear/temp/oci8/oci8.c:3184: error: expected expression before ')' token
/tmp/pear/temp/oci8/oci8.c:3184: error: invalid operands to binary *
/tmp/pear/temp/oci8/oci8.c:3184: error: 'zend_oci_globals' has no member named 'in_call'
/tmp/pear/temp/oci8/oci8.c:3187: error: 'php_oci_spool' has no member named 'spool_hash_key'
/tmp/pear/temp/oci8/oci8.c:3188: error: 'php_oci_spool' has no member named 'spool_hash_key'
/tmp/pear/temp/oci8/oci8.c: At top level:
/tmp/pear/temp/oci8/oci8.c:3200: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'php_oci_ping_init'
make: *** [oci8.lo] Error 1
ERROR: `make' failed
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros