如何在 Debian Lenny 上安装 pecl uploadprogress

如何在 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 已安装。我困惑了。

答案1

您的路径中缺少 gcc,很可能是您没有安装它。

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

除此之外,以下内容可以指导您:

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

相关内容