安装doctrine首先要安装pear,见我上一篇文章
1. 添加doctrine初始化通道
pear channel-discover pear.symfony.com
pear channel-discover pear.doctrine-project.org
2. 安装doctrine核心包
pear install pear.doctrine-project.org/DoctrineORM
install ok: channel://pear.doctrine-project.org/DoctrineCommon-2.3.0
install ok: channel://pear.symfony.com/Console-2.4.4
install ok: channel://pear.symfony.com/Yaml-2.4.4
install ok: channel://pear.doctrine-project.org/DoctrineDBAL-2.3.4
install ok: channel://pear.doctrine-project.org/DoctrineORM-2.3.3