如何在Debian Lenny上安装pecl uploadprogress

我得到这个输出/错误

# pecl install uploadprogress downloading uploadprogress-1.0.1.tgz ... Starting to download uploadprogress-1.0.1.tgz (8,536 bytes) .....done: 8,536 bytes 4 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 building in /var/tmp/pear-build-root/uploadprogress-1.0.1 running: /tmp/pear/temp/uploadprogress/configure 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... no checking for cc... no checking for cl.exe... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. ERROR: `/tmp/pear/temp/uploadprogress/configure' failed 

php-pear被安装。 我很难过

你在你的path中缺lessgcc,很可能你没有安装它。

不要忘记安装make。 在Debian上安装package build-essentials,所有必要的工具都是它的依赖。 您可能想要保存已安装的软件包列表,并在编译完PECL扩展之后将其删除,因为您可能不希望将这些工具保留在Web服务器上。

除此之外,这应该引导你:

http://joergfelser.at/content/howto-install-pecl-uploadprogress-debian-50-lenny