博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
phalcon 2.0.0的安装
阅读量:7172 次
发布时间:2019-06-29

本文共 1430 字,大约阅读时间需要 4 分钟。

  hot3.png

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

  1)安装re2c

wget http://downloads.sourceforge.net/project/re2c/re2c/0.13.7.5/re2c-0.13.7.5.tar.gztar xzf re2c-0.13.7.5.tar.gzcd re2c-0.13.7.5./configuremake && make install

  2)安装

   先确定

ln -sv /usr/local/php5.5.14/bin/phpize /usr/local/bin/phpizeln -sv /usr/local/php5.5.14/bin/php /usr/local/bin/phpln -sv /usr/local/php5.5.14/bin/php-config /usr/local/bin/php-config

cd zephir./install-json./install -c

3、phalcon安装

cd cphalcon../zephir/bin/zephir generate../zephir/bin/zephir compileorzephir generatezephir compile

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);    ---------------------------------------------------------^

原因:未知

转载于:https://my.oschina.net/ptk/blog/366482

你可能感兴趣的文章
.Net性能的方方面面(必看官方经典)
查看>>
java反射调用方法
查看>>
***使用Fiddler进行IOS APP的HTTP抓包
查看>>
ConcurrentHashMap总结
查看>>
uboot arp地址解析
查看>>
gem5: 使用ruby memory system中的mesh结构 出现AssertionError错误
查看>>
leetcode:Binary Tree Paths
查看>>
ubuntu-Linux下如何安装Tensorflow?
查看>>
关于1KB病毒的清除
查看>>
BZOJ 4318: OSU!
查看>>
【算法系列】之递归算法
查看>>
Android获取wifi MAC,关闭的wifi不能获取
查看>>
《Android源代码设计模式解析与实战》读书笔记
查看>>
c# CacheManager 缓存管理
查看>>
LeetCode - 463. Island Perimeter
查看>>
Jquery—Jquery中的(function($){...})(jQuery)
查看>>
写给大家看的编程规范
查看>>
Android Studio “懒人”必备插件android layout id converter
查看>>
SQL语句:Group By总结
查看>>
Java字节码 小结
查看>>