SOLUTION:
In php-4.0.6/configure file, comment
out (#) lines between 34050 – 34068. and then write manually ORACLE_VERSION=8.1
to line 34070.
out (#) lines between 34050 – 34068. and then write manually ORACLE_VERSION=8.1
to line 34070.
#echo $ac_n "checking Oracle version""... $ac_c" 1>&6 (34050. line) #echo "configure:34052: checking Oracle version" >&5 #if test -s "$ORACLE_DIR/orainst/unix.rgs"; then #ORACLE_VERSION=`grep '"ocommon"' $ORACLE_DIR/orainst/unix.rgs | sed 's/ */:/g' | cut -d: -f 6 | cut -c 2-4` #test -z "$ORACLE_VERSION" && ORACLE_VERSION=7.3 #elif test -f $ORACLE_DIR/lib/libclntsh.s?.8.0; then #ORACLE_VERSION=8.1 #elif test -f $ORACLE_DIR/lib/libclntsh.s?.1.0; then #ORACLE_VERSION=8.0 #elif test -f $ORACLE_DIR/lib/libclntsh.a; then #if test -f $ORACLE_DIR/lib/libcore4.a; then #ORACLE_VERSION=8.0 #else #ORACLE_VERSION=8.1 #fi #else #{ echo "configure: error: Oracle needed libraries not found" 1>&2; exit 1; } #fi #echo "$ac_t""$ORACLE_VERSION" 1>&6 (34068.line ) ORACLE_VERSION=8.1 #(34070. line)
And also comment outlines between 31537 –
31555 and then write manually
ORACLE_VERSION=8.1 to line 31556.
31555 and then write manually
ORACLE_VERSION=8.1 to line 31556.
# echo $ac_n "checking Oracle version""... $ac_c" 1>&6 (31537. line) #echo "configure:31539: checking Oracle version" >&5 # if test -s "$OCI8_DIR/orainst/unix.rgs"; then # OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed 's/ */:/g' | cut -d: -f 6 | cut -c 2-4` # test -z "$OCI8_VERSION" && OCI8_VERSION=7.3 # elif test -f $OCI8_DIR/lib/libclntsh.s?.8.0; then # OCI8_VERSION=8.1 # elif test -f $OCI8_DIR/lib/libclntsh.s?.1.0; then # OCI8_VERSION=8.0 # elif test -f $OCI8_DIR/lib/libclntsh.a; then # if test -f $OCI8_DIR/lib/libcore4.a; then # OCI8_VERSION=8.0 # else # OCI8_VERSION=8.1 # fi #else # { echo "configure: error: Oracle-OCI8 needed libraries not found" 1>&2; exit 1; } # fi # echo "$ac_t""$OCI8_VERSION" 1>&6 OCI8_VERSION=8.1 #(3156. line)
And finally issue following commands to finish:
#make clean #./configure --with-oci8=/u01/app/oracle/product/8.1.6 --with-apxs=/www/bin/apxs --enable-track-vars --with-oracle=/u01/app/oracle/product/8.1.6 --enable-sigchild #make #make install
After adding following lines to
httpd.conf file:
httpd.conf file:
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
And before restarting apache, apache must be
told where ORACLE LIB directory is. To accomplish this:
told where ORACLE LIB directory is. To accomplish this:
#export $LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/u01/app/oracle/product/8.1.6/lib
If your oracle lib dir is different
than /u01/app/oracle/product/8.1.6/lib change this with your
$ORACLE_HOME/lib
and restart Apache by issuing the apachectl restart command.
than /u01/app/oracle/product/8.1.6/lib change this with your
$ORACLE_HOME/lib
and restart Apache by issuing the apachectl restart command.
is an BSD and Unix administrator from Turkey and a
EnderUNIX software development team member. This article was previously
published at http://www.enderunix.org/.