我无法使用Propel来生成模型。在我的工作项目中,服务器管理员安装了推进梨模块,因此我可以使用propel-gen来完成此操作。我已经按照相同的路线进行了我自己的项目但是我遇到了使用propel-gen命令工作的问题
我正在使用MAMP。我使用此处的说明:http://www.propelorm.org/documentation/01-installation
Aaron-Wuggawoos-MacBook-Pro:/ azz0r$ which php
/Applications/MAMP/bin/php/php5.3.6/bin/php
Aaron-Wuggawoos-MacBook-Pro:/ azz0r$ which pear
/Applications/MAMP/bin/php/php5.3.6/bin/pear
Aaron-Wuggawoos-MacBook-Pro:/ azz0r$ pear channel-discover pear.phing.info
Channel "pear.phing.info" is already initialized
Aaron-Wuggawoos-MacBook-Pro:/ azz0r$ sudo pear install phing/phing
Password:
phing/phing is already installed and is the same as the released version 2.4.12
install failed
Aaron-Wuggawoos-MacBook-Pro:/ azz0r$ sudo pear install Log
pear/Log is already installed and is the same as the released version 1.12.7
install failed
Aaron-Wuggawoos-MacBook-Pro:/ azz0r$ cd /Users/azz0r/Sites/Personal\ GIT/wuggawoo/library/ORM
Aaron-Wuggawoos-MacBook-Pro:ORM azz0r$ sudo propel-gen yaml
Password:
sudo: propel-gen: command not found
Aaron-Wuggawoos-MacBook-Pro:ORM azz0r$
和
Aaron-Wuggawoos-MacBook-Pro:ORM azz0r$ sudo pear channel-discover pear.propelorm.org
Channel "pear.propelorm.org" is already initialized
Aaron-Wuggawoos-MacBook-Pro:ORM azz0r$ sudo pear install -a propel/propel_generator
propel/propel_generator is already installed and is the same as the released version 1.6.7
install failed
Aaron-Wuggawoos-MacBook-Pro:ORM azz0r$ sudo pear install -a propel/propel_runtime
propel/propel_runtime is already installed and is the same as the released version 1.6.7
install failed
Aaron-Wuggawoos-MacBook-Pro:ORM azz0r$ sudo propel-gen
sudo: propel-gen: command not found
Aaron-Wuggawoos-MacBook-Pro:ORM azz0r$ propel-gen
-bash: propel-gen: command not found
还有其他方法可以让它发挥作用吗?