这是cmd:
pecl install apc结果:
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 source files, building
running: phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed由于某些原因,我无法安装"apc“和"pecl_http”。
另外,我正在使用PHP-5.4,当我编译它时,我这样做了:
./configure --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --disable-pdo --with-curl --disable-debug --disable-rpath --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --enable-ctype --enable-bcmath --enable-calendar --enable-exif --with-gettext --with-openssl --enable-shmop --enable-soap --enable-wddx --with-xmlrpc我启用了"fpm“,这对PHP5.4来说足够了吗?这是否是pecl不能工作的原因呢?
提前感谢您的帮助。
我确实做了&&做安装
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)发布于 2012-08-20 23:02:27
您丢失了php5-dev:http://packages.ubuntu.com/quantal/php5-dev包
通过在PHP5.4配置期间激活PHP,您可以启用php:http://php-fpm.org/
https://serverfault.com/questions/419449
复制相似问题