drbae3964
drbae3964
2017-12-18 12:48
浏览 141
已采纳

(ZeroMQ安装失败)zmq.so:未定义的符号:zend_new_interned_string

I tried to install ZMQ for PHP recently and ran into the following problem:

apache2: Syntax error on line 137 of /etc/apache2/httpd.conf: Cannot load modules/extra_zmq.so into server: /usr/lib64/apache2/modules/extra_zmq.so: undefined symbol: zend_new_interned_string

make test on php-zmq shows my PHP version is used (7.1.11, along with Zend 3.1.0) and fail for these two tests (don't know if it's related, I couldn't find more information about these tests):

FAILED TEST SUMMARY
---------------------------------------------------------------------
Test adding / removing items [tests/007-addremovepoll.phpt]
Test callback edge-cases [tests/019-callbackinvalidsignature.phpt]

I tried downloading from both Github and PECL repository without any luck.

图片转代码服务由CSDN问答提供 功能建议

我最近尝试安装ZMQ for PHP并遇到以下问题: < blockquote>

apache2:/etc/apache2/httpd.conf的第137行上的语法错误:无法将n / n / us / / m / / / / / / / / / / / / / / / / / / / / / / / / / / / / / :未定义的符号: zend_new_interned_string

  • 我按照步骤安装0mq,一切都很顺利: http://www.zeromq.org/intro:get-the-software
  • 我运行了所需的命令来制作php-zmq: http://zeromq.org/bindings:php
  • 为了确保我配置了php配置集:phpize&amp;&amp; ./configure --with-php-config = / usr / bin / php-config

    在php-zmq上进行测试显示我使用的是PHP版本(7.1 .11,以及Zend 3.1.0)并且这两个测试都失败了(不知道它是否相关,我找不到关于这些测试的更多信息):

      FAILED TEST SUMMARY 
     --------------------------------------------  ------------------------- 
    Test添加/删除项[tests / 007-addremovepoll.phpt] 
    Test回调edge-cases [tests / 019  -callbackinvalidsignature.phpt] 
       
     
     

    我试着从Github和PECL存储库下载而没有任何运气。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • drd94483
    drd94483 2017-12-18 16:45
    已采纳

    Well I found the problem, the extension was meant to be loaded by PHP and not by Apache. I was trying to use LoadModule (a2enmod) in httpd.conf, but this extension needs to be used with PHP, with the proper directive: extension=zmq.so.

    点赞 评论

相关推荐