No PHP configure executable in Red Hat

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Thresher
Forum Newbie
Posts: 13
Joined: Sun Apr 01, 2007 3:12 am

No PHP configure executable in Red Hat

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Thresher
Forum Newbie
Posts: 13
Joined: Sun Apr 01, 2007 3:12 am

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply