编译的 PHP 扩展无效

发布于 2024-12-22 17:56:55 字数 547 浏览 2 评论 0原文

我尝试在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丑疤怪 2024-12-29 17:56:55

……现在有人向我开枪。它不是一个有效的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文