Reputation: 6820
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:
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:
(build.properties and schema.xml are in the same directory)
Upvotes: 0
Views: 2301
Reputation: 3871
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 ?
Upvotes: 1
Reputation: 158150
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
Upvotes: 1