【问题标题】:PHP Phalcon installation errorPHP Phalcon安装错误
【发布时间】:2014-05-18 09:42:47
【问题描述】:

我试图在我的 MAC 系统中安装 phalcon,但出现此错误,请告诉我如何解决?

我已经运行了这些命令

 git clone --depth=1 git://github.com/phalcon/cphalcon.git
 cd cphalcon/build
 sudo ./install

它显示错误:

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
/bin/sh /Users/dladdha/test/cphalcon/build/64bits/libtool --mode=compile gcc  -I. -I/Users/dladdha/test/cphalcon/build/64bits -DPHP_ATOM_INC -I/Users/dladdha/test/cphalcon/build/64bits/include -I/Users/dladdha/test/cphalcon/build/64bits/main -I/Users/dladdha/test/cphalcon/build/64bits -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DPHALCON_RELEASE -DHAVE_CONFIG_H  -O2 -finline-functions -fomit-frame-pointer -fvisibility=hidden   -c /Users/dladdha/test/cphalcon/build/64bits/phalcon.c -o phalcon.lo 
mkdir .libs
 gcc -I. -I/Users/dladdha/test/cphalcon/build/64bits -DPHP_ATOM_INC -I/Users/dladdha/test/cphalcon/build/64bits/include -I/Users/dladdha/test/cphalcon/build/64bits/main -I/Users/dladdha/test/cphalcon/build/64bits -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -O2 -finline-functions -fomit-frame-pointer -fvisibility=hidden -c /Users/dladdha/test/cphalcon/build/64bits/phalcon.c  -fno-common -DPIC -o .libs/phalcon.o
In file included from /usr/include/php/ext/spl/spl_iterators.h:27,
                 from /Users/dladdha/test/cphalcon/build/64bits/phalcon.c:204:
/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /usr/include/php/ext/spl/spl_iterators.h:27,
                 from /Users/dladdha/test/cphalcon/build/64bits/phalcon.c:204:
/usr/include/php/ext/pcre/php_pcre.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/php/ext/pcre/php_pcre.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/usr/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before ‘pcre’
make: *** [phalcon.lo] Error 1 

谁有解决办法??

【问题讨论】:

标签: php pcre phalcon


【解决方案1】:

你安装了 PCRE 吗? http://mac-dev-env.patrickbougie.com/pcre/ 提供了一篇关于如何做到这一点的优秀文章。

然后在您的 /usr/include/php/ext/pcre/php_pcre.h 文件中,编辑包含 pcre.h 的行以将 /path/to/pcre.h 包含在您的 pcre 文件夹中。

这对我有用。祝你好运!

【讨论】:

    猜你喜欢
    • 2014-06-07
    • 2012-12-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-14
    • 1970-01-01
    • 2020-04-15
    • 1970-01-01
    相关资源
    最近更新 更多