php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57368 pecl install apc fails with apache2
Submitted: 2006-11-10 14:19 UTC Modified: 2007-02-18 02:35 UTC
From: m at tthew dot org dot uk Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 4.4.4 OS: Debian (testing)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: m at tthew dot org dot uk
New email:
PHP Version: OS:

 

 [2006-11-10 14:19 UTC] m at tthew dot org dot uk
Description:
------------
Attempting to install APC using pecl fails due to the presumption that Apache 1.x is being used, and consequently that apxs will be located at /usr/bin/apxs.

The only work around I have found is to create a sym-link to trick configure:

ln -s /usr/bin/apxs2 /usr/bin/apxs

...since there is no way to pass "--with-apxs=/usr/bin/apxs2" to configure via pecl.

Seems to me that either an option to select Apache2 during the initial prompts is required, or if only /etc/apache/apxs2 exists, perhaps this can be used by default?

Thanks
Matthew

Reproduce code:
---------------
# pecl install apc

Expected result:
----------------
APC should install, passing --with-apxs=/usr/bin/apxs2 to configure if /usr/bin/apxs is unavailable but apxs2 is.

Actual result:
--------------
Install fails:

downloading APC-3.0.12p2.tgz ...
Starting to download APC-3.0.12p2.tgz (94,809 bytes)
.....................done: 94,809 bytes
35 source files, building

[...]

checking whether apc needs to get compiler flags from apxs...

Sorry, I was not able to successfully run APXS.  Possible reasons:

1.  Perl is not installed;
2.  Apache was not compiled with DSO support (--enable-module=so);
3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs
The output of apxs follows
/tmp/tmpFENl7q/APC-3.0.12p2/configure: line 3750: apxs: command not found
configure: error: Aborting
ERROR: `/tmp/tmpFENl7q/APC-3.0.12p2/configure --enable-apc-mmap=yes --with-apxs' failed

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-20 02:42 UTC] jfitzdela at gmail dot com
I had a similar problem. I believe the way I got around it (also running apache2) was to answer "no" to the first question the installer asks (I apologize, I can't remember the exact wording, but it recommends "yes" to the first option if you're running apache. I answered no and it worked like a charm...).

Hope this helps!
 [2007-02-18 02:35 UTC] rasmus@php.net
Fixed to check for apxs2 by default now
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Mar 15 03:01:28 2025 UTC