简体   繁体   English

我可以忽略Pear软件包安装的PHP版本要求

[英]Can I Ignore PHP Version Requirements for Pear Package Install

I'm trying to install a couple of pear packages but have an issue with the version of PHP I'm running. 我正在尝试安装几个pear软件包,但是我正在运行的PHP版本有问题。 Firstly I get: 首先我得到:

sudo pear install phix/Autoloader
Failed to download phix/Autoloader, latest release is version 3.0.0, but it requires PHP version "5.3.0", use "channel://pear.phix-project.org/Autoloader-3.0.0" to install
Cannot initialize 'channel://pear.phix-project.org/Autoloader', invalid or missing package file
Package "channel://pear.phix-project.org/Autoloader" is not valid
install failed

I then try and install as follows: 然后,我尝试如下安装:

sudo pear install channel://pear.phix-project.org/Autoloader-3.0.0
phix/Autoloader requires PHP (version >= 5.3.0), installed version is 5.2.6-1+lenny13
No valid packages found
install failed

Would I be correct in assuming the error is related to the version of PHP I'm running? 假设错误与我正在运行的PHP版本有关是否正确? If so, is there a way of getting the pear install to ignore the PHP version requirements? 如果是这样,有没有办法让pear安装程序忽略PHP版本要求?

Thanks 谢谢

Even if you bring PEAR to ignore the version, you cannot use the packages, because the requirements are not fulfilled. 即使使PEAR忽略版本,也不能使用软件包,因为不能满足要求 There are really good reasons, why the package maintainers set the requirements. 确实有充分的理由说明为什么软件包维护者会设置要求。 Thus: No, you can't. 因此:不,你不能。

Please take a look into 请看看

pear help install

This should list you all available options. 这应该列出您所有可用的选项。 As written in my comment above, I don't think it makes sense, but you can just try harder to make pear installing the package anyway. 正如我在上面的评论中所写,我认为这没有道理,但是无论如何,您可以更加努力地让梨安装该软件包。 The package then might just not work in the end, but well, that are "just" requirements you'd like to ignore anyway, so go ahead ;) 然后,该程序包可能最终无法工作,但是,好吧,这些都是您只是想忽略的“公正”要求,所以继续吧;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM