Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在运行OS X 10.8的MAMP上安装gearman时出现的问题_Php_Macos_Terminal_Mamp_Gearman - Fatal编程技术网

Php 在运行OS X 10.8的MAMP上安装gearman时出现的问题

Php 在运行OS X 10.8的MAMP上安装gearman时出现的问题,php,macos,terminal,mamp,gearman,Php,Macos,Terminal,Mamp,Gearman,正如标题所述,在MAMP环境中安装gearman for PHP时,我遇到了一些问题。以下是我迄今为止所做的工作: 我已下载了最新的PECL版本,并根据以下命令运行这些命令: 我进入phpize步骤,收到错误configure:error:请安装libgearman 我对Mac产品、终端/命令行执行等非常陌生。有人能帮我解决这个问题吗?在谷歌搜索时,我真的找不到任何关于这个问题的帮助。你需要编译gearman守护程序,即使你没有在那台机器上运行gearman。这将提供用于pecl gearman

正如标题所述,在MAMP环境中安装gearman for PHP时,我遇到了一些问题。以下是我迄今为止所做的工作:

我已下载了最新的PECL版本,并根据以下命令运行这些命令:

我进入
phpize
步骤,收到错误
configure:error:请安装libgearman


我对Mac产品、终端/命令行执行等非常陌生。有人能帮我解决这个问题吗?在谷歌搜索时,我真的找不到任何关于这个问题的帮助。

你需要编译gearman守护程序,即使你没有在那台机器上运行gearman。这将提供用于pecl gearman扩展的libgearman


你可以在这里找到gearman:

是的,我注意到我无意中跳过了重要部分。我正在浏览一本关于如何在Mac上安装的指南…希望一切顺利。
tar xzf gearman-X.Y.tgz
cd gearman-X.Y
phpize
./configure
make
make install