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



我安装了phalcon的所有依赖项/需求,并在运行时从git中提取/安装我得到了这些错误:

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,然后尝试再次安装。

希望您现在已经解决了这个问题,但我刚刚遇到了同样的问题。我通过VirtualBox使用Ubuntu。

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

最新更新