phing 已安装但“未找到”并且不在梨列表中

发布于 2024-12-12 19:00:45 字数 1263 浏览 4 评论 0原文

我正在尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一梦浮鱼 2024-12-19 19:00:45

您需要在 $PATH 变量中包含 pear 的 bin(可执行文件)目录。

找到路径,

$ pear config-get bin_dir

将其添加到您的路径中:

$ export PATH=$PATH:/usr/share/php/bin

You need to have pear's bin (executable) directory in your $PATH variable.

Find the path with

$ pear config-get bin_dir

Add this to your path that way:

$ export PATH=$PATH:/usr/share/php/bin
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文