Question

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)

Était-ce utile?

La solution

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

Autres conseils

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 ?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top