我正在尝试安装用于 Wamp 2.1 的 PEAR。该软件包不附带任何 pear 安装。我读到你需要使用 http://pear.php.net/go-pear.phar为 PHP 5.3 安装 PEAR,因为旧的 go-pear.bat 现在已经过时了?
说明是运行以下命令来安装PEAR;
php -d phar.require_hash=0 PEAR/go-pear.phar
但是,这会导致以下错误;
manifest cannot be larger than 100 MB in phar "D:\wamp2\bin\php\php5.3.4\PEAR\go-pear.phar"
我确定这是由于我在某个地方设置正确的 php 设置,有人有任何想法吗?
最佳答案
即使直接从浏览器“另存为”,我也会遇到同样的错误。 我的解决方案是直接通过命令行下载它:
cd C:/php/bin/
curl -OL http://pear.php.net/go-pear.phar
这正确地下载了 .phar 文件并在安装后正确地开始:
php -d phar.require_hash=0 go-pear.phar
关于php - 使用 phar 在 Windows 7 上安装 PEAR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4997628/