Вопрос

I've installed the Propel ORM in my Zend Framework project with the following commands:

pear channel-discover pear.phing.info
pear install phing/phing
pear install Log

But always when I try to run propel-gen I get the following error:

propel-gen: command not found

I've already looked at this post on stackoverflow and tried the following:

  • When I check $ pear list I get the following:

    enter image description here

  • When I run the following command:

    pear config-get bin_dir

    I get this: /Applications/MAMP/bin/php/php5.4.4/bin

  • I've checked my .bash_profile:

    PATH=/Applications/MAMP/bin/php/php5.4.4/bin:/Applications/MAMP/Library/bin:$PATH
    export PATH

I assume that this is correct?

I forgot to install propel but when I want to load the command

propel-gen om

I get the following erros:

enter image description here

(build.properties and schema.xml are in the same directory)

Это было полезно?

Решение

You have actually installed phing and not propel. To install propel issue the following commands:

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

Further note that you have to pass the -a option to pear list to see packages from all channels:

pear list -a

Другие советы

Cannot see where you have done this

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

Assume you have ?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top