我试图通过以下命令在我的Ubuntu12.04机器上安装Gearman
sudo apt-get install gearman-job-server libgearman-dev
sudo apt-get install php-pear php5-dev
上面的命令运行正常,但当我运行时
sudo pecl install gearman
它给出的错误如下
checking whether to enable gearman support... yes, shared
found in /usr
checking for gearman_client_set_context in -lgearman... yes
checking for gearman_worker_set_server_option in -lgearman... yes
checking for gearman_job_error in -lgearman... no
configure: error: libgearman version 1.1.0 or later required
ERROR: `/tmp/pear/temp/gearman/configure' failed
我无法找到如何安装它。
发布于 2013-03-12 23:57:16
在您的存储库中有旧版本的gearman。您需要从http://www.gearman.org/编译并安装最新版本(至少1.1.0)的源代码。然后用pecl安装php模块就会顺利进行。我在百人座上也有类似的问题。
发布于 2013-05-04 07:45:00
另一个选项是从gearman安装libgearman:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:gearman-developers/ppa
sudo apt-get update
假设您已经安装了libgearman-dev和gearman-作业服务器,那么您所要做的就是:
sudo apt-get upgrade
要升级gearman,那么只需再次运行pecl,这一次它应该可以工作:
sudo pecl install gearman
发布于 2013-04-08 05:47:15
您可以尝试安装更老版本的gearman扩展。例如,Ubuntu12.10上的最新版本安装失败。但是,指定更早的版本很好:
pecl install gearman-1.0.3
您可以在http://pecl.php.net/package/gearman上找到可用版本列表。
https://serverfault.com/questions/487331
复制