Page 1 of 1

No PHP configure executable in Red Hat

Posted: Wed May 16, 2007 4:01 pm
by Thresher
Hi,

I am trying to install Oracle Instant Client, which requires reconfiguring PHP. The documents I am following assume an executable called “configure” in the PHP installation.

My PHP installation works just fine and was installed from php-5.1.6-3.el4s1.5.i386.rpm. The problem is that my PHP installation does not contain a configure executable.

I could try to proceed using php-5.2.2/configure from php.net, but I decided to ask for suggestions first.

* Is there a way to configure PHP without the configure executable?
* Should I configure my PHP 5.1.6 installation with the configure executable from PHP 5.2.2?

Thanks,
Griff

My OS is Red Hat Enterprise Linux ES release 4 (Nahant Update 4).

The documents I am following to install Oracle Instant Client are:
http://www.oracle.com/technology/pub/no ... stant.html
http://www.oracle.com/technology/tech/p ... linux.html

Posted: Wed May 16, 2007 4:03 pm
by RobertGonzalez
There is typically no configure from the RPMs. You may be able to download the source, then in the same folder as the source code, use the command phpize to create the configure scripts and make files.

Code: Select all

[you@yourdomain ~]># phpize
You will need to be root to do it, but it should work without a hitch.

Posted: Wed May 16, 2007 6:04 pm
by Thresher
Everah,

Thank you for the reply.

Are you saying that if I can't find the source for php-5.1.6-3.el4s1.5.i386.rpm, then I can't run phpize and can't reconfigure my PHP installation?

What do other programmers do when they install from an .RPM and then need to reconfigure PHP?

~Griff

Posted: Wed May 16, 2007 6:19 pm
by RobertGonzalez
Most folks (I suspect) load the RPM for their extension rather than rebuild PHP. I say this for the majority of folks that are not that up to speed on how to compile applications from source.

I have never compiled PHP for my system, but I have compiled a few extensions that needed PHP source files. I have downloaded the PHP source and ran phpize on it and it built the configure script which in turn built the make files and other support files.