phing已安装但“未找到"不在梨列表中 [英] phing installed but "not found" and not in pear list
问题描述
我正在尝试在具有phing依赖性的CentOS上安装Propel ORM.我运行了以下成功的示例:
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
但是,当我按照推进文档中所述运行./propel-gen
时,它失败并显示错误:
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
但是,如果我检查是否安装了phing,则它不会出现在软件包列表中,但是,如果我尝试再次安装它,则会失败:
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
我需要能够运行./propel-gen
来测试Propel是否已成功安装,因此在这一点上我有些卡住了.我还通过运行以下退出bool(true)
的命令再次检查了Pear是否在PHP include_path
中:
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! :)
推荐答案
您需要在$PATH
变量中具有pear的bin(可执行)目录.
You need to have pear's bin (executable) directory in your $PATH
variable.
使用以下路径查找路径
$ pear config-get bin_dir
以这种方式将其添加到您的路径中:
Add this to your path that way:
$ export PATH=$PATH:/usr/share/php/bin
这篇关于phing已安装但“未找到"不在梨列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!