Jump to content

Recommended Posts

This may be the completely wrong place for this, but I couldn't figure out where it should go...

I'm building an rpm of the newest php (5.1.5) on Redhat ES4 and keep getting this error in the install portion:

[code]apxs:Error: Config file /var/tmp/php-root/etc/httpd/conf/httpd.conf not found.
make: *** [install-sapi] Error 1
[/code]

I can't find any reference to httpd.conf in my spec file.  I think, upon inspection, that my apxs is fine, but I could be wrong.  That file definitely is not there (/var/tmp/php-root/etc/httpd/conf/ is empty).  If I get the spec file to copy it into that dir from the live location (/etc/httpd/conf/httpd.conf), I get the same problem.

I really feel like I am banging my head against the wall, so any pointers would be much appreciated.

My spec file is 500 lines, so I don't want to post the whole thing unless someone specifically asks.  I've tried 2 different ones.  I took a fedora core 5 php 5.1.4 rpm spec file and editted and tried that, and the latest I could find for a RHEL4 rpm, which was 4.2.3.  Both give the identical error in the identical location.  The build does complete, as does the ./configure <args> and make by hand...it's the install part having problems.
Link to comment
https://forums.phpfreaks.com/topic/18407-building-rpm-error-please-help/
Share on other sites

ok, I did find the right spot in the spec file where I can copy my .conf file over.  And now I'm almost done...then I get this
[code]RPM build errors:
    File not found: /var/tmp/php-root/usr/lib/php/build[/code]

Does this mean I need php-devel to build a php rpm?
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.