php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56640 Building without APXS not working
Submitted: 2005-11-12 09:12 UTC Modified: 2005-11-12 10:12 UTC
From: nohn@php.net Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nohn@php.net
New email:
PHP Version: OS:

 

 [2005-11-12 09:12 UTC] nohn@php.net
Description:
------------
Building APC without apxs does not work:

Reproduce code:
---------------
# pecl install APC

Expected result:
----------------
PECL gets installed



Actual result:
--------------
# /opt/php/bin/pecl install APC
downloading APC-3.0.8.tgz ...
Starting to download APC-3.0.8.tgz (75,541 bytes)
.................done: 75,541 bytes
35 source files, building
running: phpize
Configuring for:
PHP Api Version:         20031224
Zend Module Api No:      20041030
Zend Extension Api No:   220040412
Use mmap instead of shmget (usually a good idea) [yes] :
Use apxs to set compile flags (if using APC with Apache)? [yes] : no
building in /var/tmp/pear-build-root/APC-3.0.8
running: /tmp/tmpoC5Xng/APC-3.0.8/configure --enable-apc-mmap=yes --with-apxs=no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /opt/php
checking for PHP includes... -I/opt/php/include/php -I/opt/php/include/php/main -I/opt/php/include/php/TSRM -I/opt/php/include/php/Zend
checking for PHP extension directory... /opt/php/lib/php/extensions/no-debug-non-zts-20041030
checking for re2c... exit 0;
checking for gawk... gawk


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 /var/tmp/pear-build-root/APC-3.0.8/no follows
/tmp/tmpoC5Xng/APC-3.0.8/configure: line 2955: /var/tmp/pear-build-root/APC-3.0.8/no: No such file or directory
configure: error: Aborting
ERROR: `/tmp/tmpoC5Xng/APC-3.0.8/configure --enable-apc-mmap=yes --with-apxs=no' failed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-12 09:19 UTC] rasmus@php.net
--with-apxs=no is not the correct syntax.  Either don't put --with-apxs there or use --without-apxs although that is rather redundant since the default is to not use it.
 [2005-11-12 09:20 UTC] rasmus@php.net
Oh wait, I see where the "no" comes from, so not bogus.
 [2005-11-12 10:12 UTC] rasmus@php.net
Fixed in CVS
 [2006-05-25 04:53 UTC] idong at gmx dot de
Hi Rasmus, I am not sure which Package I try to use is out of date, since you seem to have fixed it somewhere. Am I using the wrong version of PHP, PECL or APC? I suppose PECL, since it's the PECL-Bugtracker :)

Here is what I get, trying to do the same. It fails for both answers to the question "Use apxs to set compile flags (if using APC with Apache)?": yes/no

It would be fine, if there is a simple solution to that. I am using Debian Sarge and installed everything using APT. 

How can I upgrade to the newest PECL version with APT?

Already tried:

apt-get update
apt-get upgrade

Doing dpkg -l shows me

php-pear 5.1.2-0bpo1 PEAR - PHP Extension and Application Repository

Wrong version?

Thank you! Ingo


root@www1:/tmp# pecl install apc
downloading APC-3.0.10.tgz ...
Starting to download APC-3.0.10.tgz (85,818 bytes)
....................done: 85,818 bytes
35 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20050922
Zend Extension Api No:   220051025
Use mmap instead of shmget (usually a good idea) [yes] :
Use apxs to set compile flags (if using APC with Apache)? [yes] :
building in /var/tmp/pear-build-root/APC-3.0.10
running: /tmp/tmpArfGXr/APC-3.0.10/configure --enable-apc-mmap=yes --with-apxs
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext
checking for PHP extension directory... /usr/lib/php5/20051025
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
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/tmpArfGXr/APC-3.0.10/configure: line 3196: apxs: command not found
configure: error: Aborting
ERROR: `/tmp/tmpArfGXr/APC-3.0.10/configure --enable-apc-mmap=yes --with-apxs' failed
 [2006-05-25 05:06 UTC] idong at gmx dot de
Ok, forget about my last remark. I simply needed to 

apt-get install gpp

to fix the issue.

Sorry again,
Ingo
 [2008-09-09 10:26 UTC] carliedu at ig dot com dot br
In my case I found that the file apxs (script) was wrong on the first line.
The first line was:

#!/path/to/perl/interpreter -w

But the correct is:

#!/usr/bin/perl -w

This solved the problem.
 [2008-09-20 12:30 UTC] sean at lyricwiki dot org
In CentOS 5, the way I solved this problem was by yum 
installing the httpd-devel package.

Command was:
"yum install httpd-devel.i386 -y"

Then I ran "pecl install APC" again and it worked just fine.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 14:01:33 2024 UTC