Package: php-pear Version: 5.1.6-5 Severity: normal
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. Here is the output of 'pecl install apc': # pecl install apc 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 running: phpize Configuring for: PHP Api Version: 20020918 Zend Module Api No: 20020429 Zend Extension Api No: 20050606 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.12p2 running: /tmp/tmpFENl7q/APC-3.0.12p2/configure --enable-apc-mmap=yes --with-apxs checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/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 ISO C89... 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... /usr checking for PHP includes... -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/TSRM -I/usr/include/php4/Zend checking for PHP extension directory... /usr/lib/php4/20050606 checking for re2c... exit 0; checking for gawk... no checking for mawk... mawk 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 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. Thanks Matthew -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.8-2-386 Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) Versions of packages php-pear depends on: ii php4-cli 4:4.4.4-3 command-line interpreter for the p ii php5-common 5.1.6-5 Common files for packages built fr Versions of packages php-pear recommends: ii gnupg 1.4.5-1 GNU privacy guard - a free PGP rep -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]