无法确认是否安装了 Pear?

Can't confirm if Pear is installed or not through?

我正在使用 Windows XP、Wamp...我已经使用此代码检查 pear 是否根据 this thread's 第二个答案:

require_once 'System.php';
var_dump(class_exists('System'));

显示以下错误:

Warning: require_once(System.php) [function.require-once]: failed to open stream: No such file or directory in E:\wamp\www\phptry\chkp.php on line 2

还有这个:

Fatal error: require_once() [function.require]: Failed opening required 'System.php' (include_path='.;C:\php\pear') in E:\wamp\www\phptry\chkp.php on line 2

这是我第一次尝试使用 pear,所以出现愚蠢错误的可能性很高!我觉得我没有在环境变量中正确提及路径..但​​不确定如何解决这个问题!

我已经尝试按照 pear 手册中提到的所有步骤进行操作,但可能犯了错误。考虑到我是新手,请给出您的答案!

请帮忙,不要关闭这个问题,因为我没有其他地方可以解决这个问题......它已经发生了很多次,人们关闭了 "I don't understand type of reasons" 的问题,我的问题仍然没有解决。 . 谢谢!

我通过将 C:/WINDOWS 的 include_path 路径更改为我的 pear 目录所在的位置,获得了 pear 运行!然后重新启动服务器,瞧!明白了 运行!