这是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”这是足够的PHP 5.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)
你错过了包php5-dev: http : //packages.ubuntu.com/quantal/php5-dev
通过在configurationPHP 5.4时激活php-fpm,你可以启用php-fpm: http : //php-fpm.org/