Operating System - HP-UX
1753554 Members
4657 Online
108795 Solutions
New Discussion юеВ

Error during installing PHP on HP-UX

 
Vijay Kumar Dosapati
Occasional Advisor

Error during installing PHP on HP-UX

Hi

I'm installing PHP for Oracle on HP-UX Itanium , 11iv3 OS, with below options:
./configure \
--prefix=/var/apps/php \
--with-apxs2=/opt/hpws/apache/bin/apxs \
--with-oci8=instantclient,/t02/oracle/DEV1/db/tech_st/11.1.0/instantclient_11_1/instantclient_11_1 \
--disable-dom \
--disable-libxml
during instllation it is showing error "checking Oracle Instant Client version... configure: error: Oracle Instant Client libraries not found"

Pls suggest me.

Regards
Vijay
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: Error during installing PHP on HP-UX

Hi Vijay:

It appears that you need to install the Oracle Instant Client. It's free and available here:

http://www.oracle.com/technology/tech/oci/instantclient/index.html

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: Error during installing PHP on HP-UX

Hi (again) Vijay:

As for the installation, see:

http://www.oracle.com/technology/tech/oci/instantclient/index.html

Regards!

...JRF...
Shinji Teragaito_1
Respected Contributor

Re: Error during installing PHP on HP-UX

I don't know which PHP version you are building.
But you must change the configure script for it to find the OCI libraries.
You should find the following lines in the configure script:

*hpux*)
SHLIB_SUFFIX_NAME=sl
SHLIB_DL_SUFFIX_NAME=sl
;

Change "*hpux*)" to "hppa*hpux*)". Afterwards, run the configure
script once again.
Vijay Kumar Dosapati
Occasional Advisor

Re: Error during installing PHP on HP-UX

Hi Shinji Teragaito

I'm using PHP 5.3.0. I have also Installed Oracle Instant Client.

Regards
vijay
Shinji Teragaito_1
Respected Contributor

Re: Error during installing PHP on HP-UX

The configure script for PHP 5.3.0 must be changed as I
mentioned. Then it could find OCI libraries.
Vijay Kumar Dosapati
Occasional Advisor

Re: Error during installing PHP on HP-UX

Hi Shinji Teragaito

Can u pls tell what are all libraries it is looking for.

Regards
vijay
Vijay Kumar Dosapati
Occasional Advisor

Re: Error during installing PHP on HP-UX

Hi Shinji Teragaito

I have changed *hpux* to "hppa*hpux* as suggested , but now showing error :
./configure[4003]: Syntax error at line 4049 : `SAPI' is not expected

Pls suggest

Regards
Shinji Teragaito_1
Respected Contributor

Re: Error during installing PHP on HP-UX

> ./configure[4003]: Syntax error at line 4049 : `SAPI' is not expected

How did you change the configure script ? Here are my changes:

% diff configure.org configure
3843c3843
< for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do
---
> for flag in -mt -kthread -pthread -pthreads -mthreads -Kthread -threads -qthreaded; do
4004c4004
< *hpux*)
---
> hppa*hpux*)
%

The changes at the line 3843 are not important to you because
you are using gcc.

> Can u pls tell what are all libraries it is looking for.

I have used GD, iconv, JPEG, PNG, libXML2 and Zlib to support
some past inquiries in this forum.

I don't understand why you can not use HP-UX Apached-based Web
Server product with PHP 5.2.*. I'd recommend you to use the
latest version. I believe you can save your time.