Pan*_*ajK 8 ubuntu gearman ubuntu-12.04
我正在尝试通过以下命令在我的 Ubuntu 12.04 机器上安装 Gearman
sudo apt-get install gearman-job-server libgearman-dev
sudo apt-get install php-pear php5-dev
Run Code Online (Sandbox Code Playgroud)
以上命令运行正常,但是当我运行时
sudo pecl install gearman
Run Code Online (Sandbox Code Playgroud)
它给出的错误如下
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
Run Code Online (Sandbox Code Playgroud)
我找不到如何安装它。
小智 11
另一种选择是从 gearman PPA 安装 libgearman-dev:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:gearman-developers/ppa
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
假设您已经安装了 libgearman-dev 和 gearman-job-server,您所要做的就是:
sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
要升级 gearman,只需再次运行 pecl,这次它应该可以工作了:
sudo pecl install gearman
Run Code Online (Sandbox Code Playgroud)
在您的存储库中有旧版本的 gearman。您需要从http://www.gearman.org/下载最新版本(至少1.1.0)的源代码并编译并安装。然后用pecl安装php模块就顺利了。我在centos上也遇到过类似的问题。
| 归档时间: |
|
| 查看次数: |
7314 次 |
| 最近记录: |