In order to install Propel you will need:
* PHP >= 5.0.0 with XSLT support (--with-xsl on *nix,or enable PHP_xsl.dll on Windows)
* A supported RDBMS (MysqL,MS sql Server,Postgresql,sqlite,Oracle)
* Phing 2.0
* Creole >= 1.0.0
* PEAR Log package (optional)
-------------------------------------------------------------------------------------
1.install creole
url:http://creole.PHPdb.org
$> pear channel-discover pear.PHPdb.org
$> pear install PHPdb/creole
$> pear install PHPdb/jargon
2.install phing
url:http://phing.info/trac/wiki/Users/Download
$> pear channel-discover pear.phing.info
$> pear install phing/phing
3.install propel
url:http://propel.PHPdb.org/trac/wiki/Users/Download
method 1:
$> pear channel-discover pear.PHPdb.org
$> pear install PHPdb/propel_generator
$> pear install PHPdb/propel_runtime
method 2:
pear install http://propel.PHPdb.org/pear/propel_generator-current.tgz
pear install http://propel.PHPdb.org/pear/propel_runtime-current.tgz
备注:
a).注册/path/to/propel/generator注册到window/unix/liunx的环境变量中
b).注册pear到系统环境变量中(如pear未在系统环境变量中注册)
use:
propel-gen /path/to/projects 原文链接:https://www.f2er.com/postgresql/197426.html