我无法使用 Propel 生成我的模型。在我的工作项目中,服务器管理员安装了 propel pear 模块,因此我可以使用 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
还有其他方法可以让这个工作吗?