【问题标题】:Phalcon install error on Centos : make: *** [phalcon.lo] Error 1Centos 上的 Phalcon 安装错误:make: *** [phalcon.lo] 错误 1
【发布时间】:2014-04-17 21:53:21
【问题描述】:

我为 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

我能做什么?

【问题讨论】:

  • 使用和编辑器(如emacs)更正源文件phalcon.c的第6058行,然后向上游提交补丁。
  • 我在 6058 年会做什么?
  • 您运行的是 PHP 5.6 吗? Phalcon 还不支持它。

标签: php linux gcc centos phalcon


【解决方案1】:

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

如果还是不行,请尝试使用 PHP 5.5 并安装软件包:php55-develphp55-mysqlnd

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

【讨论】:

  • 所有软件包都有最新版本。我找不到如何解决这个问题
  • @MuhammetArslan 在其他分支机构试过了吗?
【解决方案2】:

希望您现在已经弄清楚了,但我刚刚遇到了同样的问题。我通过 VirtualBox 使用 Ubuntu。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-26
    • 1970-01-01
    • 2017-10-24
    • 2013-02-23
    • 1970-01-01
    • 2012-12-11
    相关资源
    最近更新 更多