Compiling gearman on CentOS 5.6

Compiling gearman on CentOS 5.6

Last updated: Sat, 03 Sep 2011 07:37:57 -0700View thread View thread at Gearman

Hi Song,

How did you manage to compile 0.22 . I am trying to compile 0.22 on my 
64bit cent OS 5.6. I get this error on make:

configure: error: cannot find boost/program_options.hpp Yeah but you said you managed to make 0.22 work but how?

On Aug 17, 3:37 am, Herman Radtke <hermanrad...*******> wrote: 
> >> I did that but still get compile errors.  I did manage to get 0.22 o 
> >> compile so I am trying that out. 

> > Hi Song, 

> > How did you manage to compile 0.22 . I am trying to compile 0.22 on my 
> > 64bit cent OS 5.6. I get this error on make: 

> > configure: error: cannot find boost/program_options.hpp 

> Boost libraries on CentOS are a nightmare. I am still trying to find a 
> solution that compiles and passes the tests without segfaulting. 

> -- 
> Herman Radtke 
> hermanrad...******* Thanks,

does libdrizzle work? does libdrizzle work ? thanks :) @Herman

I followed your steps and I get this:

checking for Boost headers version >= 1.39.0... yes 
checking for Boost's header version... 1_41 
checking for the toolset name used by Boost for g  ... gcc41 -gcc 
checking boost/program_options.hpp usability... yes 
checking boost/program_options.hpp presence... yes 
checking for boost/program_options.hpp... yes 
checking for the Boost program_options library... 
configure: error: cannot find the flags to link with Boost 
program_options

any idea? Anyone having a problem setting up their gearman on CentOS 5.6

follow this steps and if you have problems reply to this thread:

@herman its been a while I was so busy

So here it is:

yum remove boost* 
yum install boost141* boost141-* libevent-devel* libevent 
cd /usr/lib/boost141 && /bin/cp -rf * ../ 
cd /usr/lib64/boost141 && /bin/cp -rf * ../ 
cd /usr/include && ln -s boost141/boost/

vi /etc/yum.repos.d/drizzle.repo

// add this

[drizzle-dev] 
name=drizzle-dev 
baseurl=http://rpm.drizzle.org/7-dev/redhat/5/$basearch/ 
enabled=0 
gpgcheck=0

yum install --enablerepo=drizzle-dev drizzle7 drizzle7-devel 
libdrizzle libdrizzle-devel

rpm -U   http://rpm.drizzle.org/7-dev/redhat/5/i386/libdrizzle-devel-[..] 

wget   http://launchpad.net/gearmand/trunk/0.24/  download/gearmand-0.24.tar.z 
tar xf gearmand-0.24.tar.gz 
cd gearmand-0.24 
libdrizzle_CFLAGS="-I/usr/include/libdrizzle-2.0" libdrizzle_LIBS="- 
ldrizzle-2.0" CXX=/usr/bin/g  44 CC=/usr/bin/gcc44 ./configure -- 
prefix=/usr 
make 
make test 
make install My new lines where messed up so here it is, I will post it again:

yum remove boost* 
yum install boost141* boost141-* libevent-devel* libevent 
cd /usr/lib/boost141 && /bin/cp -rf * ../ 
cd /usr/lib64/boost141 && /bin/cp -rf * ../ 
cd /usr/include && ln -s boost141/boost/

vi /etc/yum.repos.d/drizzle.repo

// add this

[drizzle-dev] 
name=drizzle-dev 
baseurl=http://rpm.drizzle.org/7-dev/redhat/5/$basearch/ 
enabled=0 
gpgcheck=0

yum install --enablerepo=drizzle-dev drizzle7 drizzle7-devel 
libdrizzle libdrizzle-devel

rpm -U   http://rpm.drizzle.org/7-dev/redhat/5/i386/libdrizzle-devel-[..] 

wget   http://launchpad.net/gearmand/trunk/0.24/  download/gearmand-0.24.tar.z 
tar xf gearmand-0.24.tar.gz 
cd gearmand-0.24 
libdrizzle_CFLAGS="-I/usr/include/libdrizzle-2.0" libdrizzle_LIBS="- 
ldrizzle-2.0" CXX=/usr/bin/g  44 CC=/usr/bin/gcc44 ./configure -- 
prefix=/usr 
make 
make test 
make install still messed up

http://pastebin.com/zjMEQmha

转载于:https://www.cnblogs.com/jiamei/archive/2012/04/17/2453437.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值