propel-gen:命令未找到(phing)

时间:2013-08-19 12:49:19

标签: php installation pear propel phing

我使用以下命令在Zend Framework项目中安装了Propel ORM:

  梨通道 - 发现pear.phing.info
  梨安装phing / phing
  梨安装日志

但是当我尝试运行propel-gen时,我得到以下错误:

  

propel-gen:命令未找到

我已经在stackoverflow上查看了this帖子并尝试了以下内容:

  • 当我检查$ pear list时,我得到以下内容:

    enter image description here

  • 当我运行以下命令时:

    pear config-get bin_dir

    我明白了:/Applications/MAMP/bin/php/php5.4.4/bin

  • 我查看了我的.bash_profile:

    PATH = /应用程序/ MAMP / bin中/ PHP / php5.4.4 / bin中:/应用/ MAMP /库/ bin中:$ PATH
    出口路径

我认为这是正确的吗?

我忘记安装推进但是当我想加载命令时

  

propel-gen om

我得到以下错误:

enter image description here

(build.properties和schema.xml在同一目录中)

2 个答案:

答案 0 :(得分:1)

您实际安装了phing而非propel。要install propel发出以下命令:

pear channel-discover pear.propelorm.org 
pear install -a propel/propel_generator
pear install -a propel/propel_runtime

进一步请注意,您必须将-a选项传递给pear list才能查看所有频道的套餐:

pear list -a

答案 1 :(得分:1)

看不到你在哪里做了这个

pear channel-discover pear.propelorm.org
pear install -a propel/propel_generator
pear install -a propel/propel_runtime

假设你有?