编译的 PHP 扩展无效
我尝试在 Ubuntu 10.04 上安装 gearman PHP 扩展,并将 PHP 固定到 5.2,但 PHP 告诉我这不是有效的 Zend 扩展。
从源代码编译(或通过 pecl 安装)时没有错误,但安装后,PHP 会这样说:
/usr/lib/php5/20060613+lfs/gearman.so doesn't appear to be a valid Zend extension
The Architecture of the module matches the arch of PHP (我已经在 32 位和 64 位系统上尝试过) )。据我所知,我已经安装了所有依赖项(我假设如果我错过了任何依赖项,我会收到错误 - 我一开始就这样做了)。
我使用 gearman 0.8.0,因为它是在 PHP 5.2 上运行的最高版本。我使用的是 PHP 5.2,因为我上次检查时,我们的 drupal 6 与 5.3 的兼容性不佳(据说这已在核心中修复,但不一定适用于模块)。
我怀疑这可能与 PHP 被固定有关,因为我找不到关于此行为的任何文档。
I am trying to install the gearman PHP extension on Ubuntu 10.04 with PHP pinned to 5.2, but PHP is telling me it's not a valid Zend extension.
There are no errors when compiling from source (or installing via pecl), but after it's installed, PHP says this:
/usr/lib/php5/20060613+lfs/gearman.so doesn't appear to be a valid Zend extension
The architecture of the module matches the arch of PHP (I've tried it on both 32-bit and 64-bit systems). I have installed all of the dependencies as far as I'm aware (I assume I would get errors if I missed any - and I did at first).
I am using gearman 0.8.0 because it is the highest version that runs on PHP 5.2. And I'm using PHP 5.2 because the last time I checked, our drupal 6 did not play well with 5.3 (supposedly this has been fixed in core, but not necessarily for modules).
I suspect this might have something to do with PHP being pinned, because I can't find any documentation about this behavior.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
……现在有人向我开枪。它不是一个有效的 Zend 扩展,因为它不是一个 zend 扩展!
我需要做的就是将其放入 php.ini:
extension = gearman.so
而不是:
zend_extension = gearman.so
...somebody shoot me now. It's not a valid Zend extension because it's not a zend extension!
All I needed to do was put this in php.ini:
extension = gearman.so
instead of this:
zend_extension = gearman.so