无法在 Red Hat 上安装 Gearman

无法在 Red Hat 上安装 Gearman

我在 Amazon 上安装 Red Hat 的 Gearman 时遇到了问题。我找不到仓库,所以我下载了 Gearman 版本 .25,安装了它,然后从他们的仓库安装了 drizzle,使用:

yum install libdrizzle-devel
yum install libdrizzle

我执行的命令是:

libdrizzle_CFLAGS="-I/usr/local/include" libdrizzle_LIBS="-L/usr/local/lib -ldrizzle" ./configure

我得到:

   * Installation prefix:       /usr/local
   * System type:               unknown-linux-gnu
   * Host CPU:                  x86_64
   * C Compiler:                gcc (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6)
   * Assertions enabled:        yes
   * Debug enabled:             no
   * Warnings as failure:       no
   * Building with libsqlite3   no
   * Building with libdrizzle   yes
   * Building with libmemcached no
   * Building with libpq        no
   * Building with tokyocabinet no

然后我这样做:

make
make install

其次是:

pecl install gearman

然而看起来我无法使用 drizzle 库并且运行 gearmand 时屏幕一片空白。

它位于 nginx 服务器上,重新启动 php-fpm 也会出现错误:

Gracefully shutting down php-fpm . done
Starting php-fpm PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gearman.so' - libgearman.so.6: cannot open shared object file: No such file or directory in Unknown on line 0

我做错了什么吗?还有其他方法可以安装 Gearman 吗?

答案1

安装 PHP 模块后,您需要添加对/etc/php.ini

相关内容