Compiling gearman on CentOS 5.6
Compiling gearman on CentOS 5.6
Last updated: Sat, 03 Sep 2011 07:37:57 -0700 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
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...*******
does libdrizzle work?
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?
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
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
http://pastebin.com/zjMEQmha
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
----- cont. ------
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...*******
----- cont. ------
Thanks,does libdrizzle work?
----- cont. ------
does libdrizzle work ? thanks :)
----- cont. ------
@HermanI 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?
----- cont. ------
Anyone having a problem setting up their gearman on CentOS 5.6follow 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
----- cont. ------
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
----- cont. ------
still messed uphttp://pastebin.com/zjMEQmha