CentOS 安装 Gearmand 和 PHP Gearman

本文是采用源码编译方式安装Gearmand 和 PHP Gearman,完成安装Gearman当前最新版本1.1.2。

你也可以采取傻瓜式一键安装,命令如下:

yum install gearmandpecl install gearman

这样安装的方式是一键安装完成,关键是版本不是最新的。

本文接下来主要讲解源码编译安装最新版?gearmand 1.1.2 -?A distributed job system。

安装 Gearmand 分发式队列系统

在编译过程会遇到以下几种错误,是由于你的系统默认缺少这依赖类库。

报错一:

checking for boostlib >= 1.39… configure: We could not detect the boost libraries (version 1.39 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to –with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.configure: error: could not find boost

解决方法

yum install boost-devel

报错二:

configure: error: could not find gperf

解决方法

yum install gperf

报错三:

configure: error: Unable to find libevent

解决方法

yum install libevent-devel

报错四:

configure: error: Unable to find libuuid

解决方法

yum install libuuid-devel

你可以使用以下一条命令涵盖之前的4条命令:

yum install -y boost-devel gperf libevent-devel libuuid-devel

以上命令会一次性安装完所有的依赖类库。

(…)Read the rest of CentOS 安装 Gearmand 和 PHP Gearman (158 words)


© LixiPHP for LixiPHP, 2014. |Permalink |No comment |Add todel.icio.usPost tags: boost, CentOS, gearman, gearmand, gperf, libevent, libuuid, phpinfo

Feed enhanced by Better Feed from Ozh

到尽头,也许快乐,或有时孤独,如果心在远方,

CentOS 安装 Gearmand 和 PHP Gearman

相关文章:

你感兴趣的文章:

标签云: