Phalcon在Centos上安装错误:make:*** [phalcon.lo]错误1

时间:2014-04-17 21:53:21

标签: 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

我该怎么办?

2 个答案:

答案 0 :(得分:1)

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

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

最后,如果您认为问题不在您的计算机配置中,请结帐到分支1.3.21.3.3并尝试重新安装。

答案 1 :(得分:0)

希望你现在已经明白了这一点,但我刚遇到了同样的问题。我通过VirtualBox使用Ubuntu。

问题是GCC内存不足,所以我将分配的内存从512MB更改为1024MB,然后我再次成功运行。