【问题标题】:updating php extensions Ubuntu更新 php 扩展 Ubuntu
【发布时间】:2013-08-06 07:36:13
【问题描述】:

我在更新 pecl inotify 扩展时遇到问题。 但我认为它适用于所有扩展。

我最近更新了我的服务器。 首先我得到了 inotify.so 没有找到的错误。 所以我把它复制到新的php扩展目录

@server:~# locate inotify.so
/usr/lib/php5/20100525/inotify.so
/usr/lib/php5/20121212/inotify.so

但现在我得到了错误:

PHP Warning:  PHP Startup: inotify: Unable to initialize module
Module compiled with module API=20100525
PHP    compiled with module API=20121212
These options need to match

那么我该如何更新/重新安装/重新配置这些扩展?

【问题讨论】:

  • 您复制的 .so 文件不是为特定版本的 PHP 制作的。
  • 但是您发现的另一个显然是;而是将其复制到位。
  • "the other one" 是我复制的那个。所以他们都是构建 20100525。我如何为这个 php 版本制作一个特定的?

标签: php ubuntu inotify


【解决方案1】:

“漫长”的道路。

pecl uninstall inotify

pecl install inotify

应该有更好的方法来重新配置 php 扩展。对吧?!
但这暂时有效!

【讨论】:

    猜你喜欢
    • 2019-01-07
    • 2013-01-08
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    • 2014-04-07
    • 2020-04-12
    • 2016-02-11
    • 1970-01-01
    相关资源
    最近更新 更多