我正在尝试在 CentOS 上安装 Propel ORM,它依赖于 phing。我已经成功运行了以下命令:
pear channel-discover pear.phing.info
pear install phing/phing
pear install Log
然而当我跑步时./propel-gen
如上所述推进文档它失败并出现错误:
./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));
?>
非常感谢任何调试和修复此问题的帮助! :)
你需要在你的程序中拥有 pear 的 bin (可执行文件)目录$PATH
多变的。
找到路径
$ pear config-get bin_dir
以这种方式将其添加到您的路径中:
$ export PATH=$PATH:/usr/share/php/bin
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)