phing 已安装但“未找到”并且不在梨列表中
我正在尝试在 CentOS 上安装 Propel ORM,它依赖于 phing。我已经成功运行了以下命令:
pear channel-discover pear.phing.info
pear install phing/phing
pear install Log
但是,当我按照 Propel 文档 它失败并出现错误:
./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 是否已成功安装,所以我在这一点上有点卡住了。我还通过运行以下命令来仔细检查 Pear 是否在 PHP include_path
中,该命令退出 bool(true)
:
<?php
require_once 'System.php';
var_dump(class_exists('System', false));
?>
调试中的任何帮助&非常感谢解决这个问题! :)
I'm attempting to install the Propel ORM on CentOS which has a dependency for phing. I've run the following which was succesful:
pear channel-discover pear.phing.info
pear install phing/phing
pear install Log
However when I run ./propel-gen
as is described on the Propel documentation it fails with the error:
./propel-gen: line 69: phing: command not found
However if I check to see if phing is installed it doesn't appear in the package list, yet if I try to install it again it fails:
$ 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
I need to be able to run ./propel-gen
to test that Propel has been installed successfully, so I'm a little stuck at this point. I've also double checked that Pear is in the PHP include_path
by running the following which exits bool(true)
:
<?php
require_once 'System.php';
var_dump(class_exists('System', false));
?>
Any help in debugging & fixing this is greatly appreciated! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在
$PATH
变量中包含 pear 的 bin(可执行文件)目录。找到路径,
将其添加到您的路径中:
You need to have pear's bin (executable) directory in your
$PATH
variable.Find the path with
Add this to your path that way: