无法在Red Hat上安装Gearman


2

我在亚马逊上从Red Hat安装Gearman时遇到问题。我找不到一个回购,所以我下载了Gearman版本.25,安装它并使用以下命令从他们的仓库安装毛毛雨:

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

然而,似乎我不能使用毛毛雨库和运行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的方法吗?

Answers:


0

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

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.