php – phing安装但“未找到”而不是梨列表

前端之家收集整理的这篇文章主要介绍了php – phing安装但“未找到”而不是梨列表前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试在CentOS上安装Propel ORM,它依赖于phing.我运行了以下成功的事情:
pear channel-discover pear.phing.info
pear install phing/phing
pear install Log

但是,当我运行./propel-gen时,如Propel documentation所述,它失败并显示错误

./propel-gen: line 69: phing: command not found

但是,如果我检查是否安装了phing,它就不会出现在软件包列表中,但如果我再次尝试安装它,则会失败:

$pear list
Installed packages,channel pear.PHP.net:
=========================================
Package          Version State
Archive_Tar      1.3.8   stable
Console_Getopt   1.3.1   stable
Log              1.12.7  stable
PEAR             1.9.4   stable
Structures_Graph 1.0.4   stable
XML_Util         1.2.1   stable

$pear install phing/phing
phing/phing is already installed and is the same as the released version 2.4.7.1 install Failed

我需要能够运行./propel-gen来测试Propel是否已经成功安装,所以我现在有点卡住了.我还通过运行以下退出bool(true)的方法仔细检查Pear是否在PHP include_path中:

<?PHP
    require_once 'System.PHP';
    var_dump(class_exists('System',false));
?>

任何有关调试和帮助的帮助修复这一点非常感谢!

猜你在找的PHP相关文章