php - Phalcon在Centos上安装报错: make: *** [phalcon. lo] Error 1

标签 php linux gcc centos phalcon

我安装了 phalcon 的所有依赖项/要求,然后从 git 中拉取,然后当我运行 ./install 时我得到了这些错误:

checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
/bin/sh /root/down/cphalcon/build/64bits/libtool --mode=compile gcc  -I. -I/root/down/cphalcon/build/64bits -DPHP_ATOM_INC -I/root/down/cphalcon/build/64bits/include -I/root/down/cphalcon/build/64bits/main -I/root/down/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  -march=native -mtune=native -O2 -finline-functions -fomit-frame-pointer -fvisibility=hidden   -c /root/down/cphalcon/build/64bits/phalcon.c -o phalcon.lo
libtool: compile:  gcc -I. -I/root/down/cphalcon/build/64bits -DPHP_ATOM_INC -I/root/down/cphalcon/build/64bits/include -I/root/down/cphalcon/build/64bits/main -I/root/down/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 -march=native -mtune=native -O2 -finline-functions -fomit-frame-pointer -fvisibility=hidden -c /root/down/cphalcon/build/64bits/phalcon.c  -fPIC -DPIC -o .libs/phalcon.o
/root/down/cphalcon/build/64bits/phalcon.c: In function ‘phalcon_array_unshift’:
/root/down/cphalcon/build/64bits/phalcon.c:6058: error: void value not ignored as it ought to be
make: *** [phalcon.lo] Error 1

我能做什么?

最佳答案

确保你的 PHP 是 5+,然后检查你是否有这些包的最新版本:php-devel php-mysqlnd gcc libtool.

如果仍然不走运,请尝试使用 PHP 5.5 并安装软件包:php55-devel php55-mysqlnd

最后,如果您认为问题不在于您的机器配置,请检查分支 1.3.21.3.3 并尝试重新安装。

关于php - Phalcon在Centos上安装报错: make: *** [phalcon. lo] Error 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23144113/

相关文章:

php - 检查字符串是否包含来自数据库的短语

php - 在 Elasticsearch php API 中使用多种类型或索引

linux - sqlite3 .dump 在转储中插入替换函数(从 3.18 更改为 3.19)

c++ - 在 Makefile 中添加 INCLUDE、LIB 和 LD_LIBRARY_PATH

c++ - 在 gcc 中将二维数组初始化为 0 时的值不正确

javascript - Laravel 无法使用模态和 ajax 的增量方法添加数量

php - 对服务器发送的事件感到困惑

linux - 如何在centos 6上退出linux sendmail

c++ - 在 decltype 中使用 this 指针

gcc - rpath=$ORIGIN 没有预期的效果?