β

Phalcon 2.0 安装 for mac

技术尘埃@伯仁 286 阅读

1、下载:

git clone -b 2.0.0 https://github.com/phalcon/cphalcon.git

git clone https://github.com/phalcon/zephir.git
git clone https://github.com/json-c/json-c.git

2、安装zephir: http://zephir-lang.com/install.html
brew install re2c
brew install json-c
cd  zephir
./install

3、phalcon安装
?
cd cphalcon
../zephir/bin/zephir generate
../zephir/bin/zephir compile

or

zephir generate
zephir compil

4、复制cphalcon/ext/modules下的扩展到php中即可。

5、可能出现的报错:

Warning: Class “APCIterator” does not exist at compile time in /root/solf/phalcon/cphalcon/phalcon/cache/backend/apc.zep on 224 [nonexistent-class]
apc = new \APCIterator(“user”, prefixPattern);
————————————————^

原因:https://github.com/phalcon/cphalcon/issues/2910#issuecomment-59255813

Warning: Function "phalcon_orm_singlequotes" does not exist at compile time in /root/solf/phalcon/cphalcon/phalcon/mvc/model/query .zep on 513 [nonexistent- function ]
let escapedValue = phalcon_orm_singlequotes(value);
---------------------------------------------------------^

原因:未知

作者:技术尘埃@伯仁
别让梦想只是梦想而以......
原文地址:Phalcon 2.0 安装 for mac, 感谢原作者分享。

发表评论