`
xiaoyu966
  • 浏览: 261105 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

rhel5.7下安装gearmand-1.1.11并启动

阅读更多

============================================================================

原创作品,允许转载。转载时请务必以超链接形式标明原始出处、以及本声明。

请注明转自:http://yunjianfei.iteye.com/blog/

============================================================================       

 

废话不多说,首先,去https://launchpad.net/gearmand/  下载gearmand-1.1.11的源码包,copy到rhel5.7的系统上,并解压。

 

运行configure

[@localhost gearmand-1.1.11]# ./configure --prefix=/usr/local/gearman  --with-mysql --with-sqlite3=no

 

 

报如下错误:

 

checking for Boost headers version >= 1.39.0... no
configure: error: cannot find Boost headers version >= 1.39.0

 ok,http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download

 

下载boost,并解压(好大个儿。。)

 

./bootstrap.sh --prefix=/usr/local/boost/ 
./b2 install  

 这个过程需要很久,耐心等待即可。参考官网dochttp://www.boost.org/doc/libs/1_55_0/more/getting_started/unix-variants.html

 

安装完成之后,回到gearman目录,执行

CPPFLAGS=-I/usr/local/boost/include LDFLAGS=-L/usr/local/boost/lib ./configure --prefix=/usr/local/gearman  --with-mysql --with-sqlite3=no

 报如下错误

checking for gperf... no
configure: error: could not find gperf

 执行yum安装

yum install gperf mysql-devel -y

 

再次执行以上的configur,再没有报错。OK,可以进行编译了。

执行make命令时,报了很多的错,看到有个:

./libgearman-1.0/gearman.h:53:27: error: tr1/cinttypes: No such file or directory

可以推断是gcc编译器的问题,执行命令:

yum install gcc44 gcc44-c++ libstdc++44-devel -y

 安装完毕之后执行:

 

CXX=/usr/bin/g++44 CC=/usr/bin/gcc44 CPPFLAGS=-I/usr/local/boost/include LDFLAGS=-L/usr/local/boost/lib ./configure --prefix=/usr/local/gearman  --with-mysql --with-sqlite3=no 

 

 make && make install

 

至此,安装成功,执行以下命令启动(队列持久化保存)

/usr/local/gearman/sbin/gearmand -p 4730 -L 0.0.0.0 --log-file=/tmp/gearmand-4730.log --pid-file=/tmp/gearmand-4730.pid -q MySQL --mysql-host=localhost --mysql-user=root --mysql-db=gearman --verbose DEBUG  -d
 

 启动时,发现有报如下错误:

/usr/local/gearman/sbin/gearmand: error while loading shared libraries: libboost_program_options.so.1.55.0: cannot open shared object file: No such file or directory

 很明显,是因为链接文件找不到的缘故。执行如下命令

vi /etc/ld.so.conf.d/gearman.conf

 插入以下内容,保存退出

/usr/local/boost/lib/
/usr/local/gearman/lib/

 执行命令

ldconfig

 再次执行上面的启动命令,即可启动

0
2
分享到:
评论

相关推荐

    rhel5.7下安装gearmand及启动的方法

    本文简述了在rhel5.7下安装gearmand及启动的方法,供大家学习参考! 首先,到官网https://launchpad.net/gearmand/下载gearmand的源码包,传到rhel5.7的系统上,并解压。   运行configure: [@localhost gearmand-...

    rhel-server-5.1-5.11各版本集合.txt

    下载内容包括: rhel-server-5.1-x86_64-dvd....rhel-server-5.7-x86_64-dvd.iso rhel-server-5.8-x86_64-dvd.iso rhel-server-5.9-x86_64-dvd.iso rhel-server-5.10-x86_64-dvd.iso rhel-server-5.11-x86_64-dvd.iso

    rhel-server-6.0-6.9各版本集合.txt

    rhel-server-6.0-x86_64-dvd.iso rhel-server-6.1-x86_64-dvd.iso rhel-server-6.2-x86_64-dvd.iso rhel-server-6.3-x86_64-dvd.iso rhel-server-6.4-x86_64-dvd.iso rhel-server-6.5-x86_64-dvd.iso rhel-server-...

    rhel-server-7.4-x86_64-boot.iso + rhel-server-7.4-x86_64-dvd.iso

    资源是Redhat7.4镜像文件的云盘链接,包括rhel-server-7.4-x86_64-boot.iso和rhel-server-7.4-x86_64-dvd.iso 仅供学习交流,严禁用于商业用途,请于24小时内删除

    rhel-server-6.4-i386-dvd.iso

    用户通过提供的链接访问百度网盘,并输入正确的提取码,便可以下载到rhel-server-6.4-i386-dvd.iso文件,从而进行后续的安装和使用。 另外,值得注意的是,RHEL 6.4版本虽然在当前已经属于较老的产品版本,对于追求...

    rhel-server-7.1-x86-64-dvd.iso文件

    rhel-server-7.1-x86_64-dvd.iso文件

    rhel-server-7.3-x86_64-boot.iso + rhel-server-7.3-x86_64-dvd.iso

    资源是Redhat7.3镜像文件的云盘链接,包括rhel-server-7.3-x86_64-boot.iso和rhel-server-7.3-x86_64-dvd.iso 仅供学习交流,严禁用于商业用途,请于24小时内删除

    rhel-server-7.1-x86_64-boot.iso + rhel-server-7.1-x86_64-dvd.iso

    资源是Redhat7.1镜像文件的云盘链接,包括rhel-server-7.1-x86_64-boot.iso、rhel-server-7.1-x86_64-dvd.iso和supp-server-7.1-rhel-7-x86_64-dvd.iso 仅供学习交流,严禁用于商业用途,请于24小时内删除

    rhel-server-7.8-x86-64-dvd.iso

    rhel-server-7.8-x86-64-dvd.iso是一个基于Linux操作系统RHEL(Red Hat Enterprise Linux)7.8版本的安装介质文件,专为x86-64架构即64位处理器的计算机设计。RHEL是Red Hat公司开发的企业级Linux发行版,广泛应用于...

    rhel-server-7.2-x86_64-boot.iso + rhel-server-7.2-x86_64-dvd.iso

    资源是Redhat7.2镜像文件的云盘链接,包括rhel-server-7.2-x86_64-boot.iso和rhel-server-7.2-x86_64-dvd.iso 仅供学习交流,严禁用于商业用途,请于24小时内删除

    rhel-server-6.3-i386-dvd操作系统_普通windows与server

    rhel-server-6.3-i386-dvd.iso 网盘下载地址 确保资源可用

    rhel-server-6.8-x86_64-dvd.iso

    根据提供的文件信息,“rhel-server-6.8-x86_64-dvd.iso”,我们可以了解到这是一款Red Hat Enterprise Linux(RHEL)6.8版本的64位服务器操作系统镜像文件。接下来,我们将深入探讨与该镜像文件相关的几个重要知识...

    rhel-server-7.6-x86-64-dvd.iso

    首先,文件名为"rhel-server-7.6-x86-64-dvd.iso",这是Red Hat Enterprise Linux Server 7.6版本的安装介质,适用于基于x86-64架构的服务器系统。Red Hat Enterprise Linux(简称RHEL)是Red Hat公司开发的一款商业...

    rhel-server-7.0-x86_64操作系统

    rhel-server-7.0-x86_64-dvd 操作系统 网盘下载地址 确保资源可用

    rhel-server-7.0-x86_64-dvd.iso.txt

    rhel-server-7.0-x86_64-dvd.iso 网盘下载地址 【付费下载之后的用户,可留言获取更多下载资源】

    rhel-server-6.3-i386-dvd.iso

    rhel-server-6.3-i386-dvd.iso 自己收藏了Linux(小红帽)系统的几个ios镜像文件。直接下载安装在虚拟机上。方便大家学习 文件里包含了下载地址。

    RHEL7OSP-6.0-2015-02-23.2-x86_64下载.txt

    RHEL7OSP-6.0-2015-02-23.2-x86_64.iso 安装文件希望能帮助到各位,链接已更新。

    rhel-server-6.5-x86_64-dvd 操作系统

    rhel-server-6.5-x86_64-dvd 操作系统 网盘下载地址 确保资源可用

    rhel-server-5.4-i386-dvd.iso linux系统

    2. **启动安装**:使用光盘或USB启动计算机,进入RHEL安装界面。 3. **语言和键盘布局设置**:根据需求选择合适的语言和键盘布局。 4. **分区配置**:手动配置磁盘分区或选择自动分区方案。 5. **网络配置**:设置...

Global site tag (gtag.js) - Google Analytics