http://download.datadifferential.com/gearmand-0.29.tar.gz Cheers, -Brian On Mar 14, 2012, at 7:21 PM, Chris Smith wrote: > Hello, > > I have had just the most horrible time compiling Gearman 0.28. I > understand this fix has been committed in 0.29, but for this is for > people who had the same problems as I have. > > I am running the following CentOS and cPanel versions: > > # uname -a > Linux 2.6.18-274.3.1.el5 #1 SMP Tue Sep 6 20:13:52 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux > > # cat /etc/redhat-release > CentOS release 5.8 (Final) > > # /usr/local/cpanel/cpanel -V > 11.30.6 (build 4) > > > I could not install using "pecl install gearman" because it errors at libgearman not installed. I could not install libgearman because Boost was not up-to-date. After updating Boost, I could not make Gearman 0.28 because of this bug. > > Here are the steps I did to fix the errors: > > > *****Fix Boost 1.39 >= must be installed issue*****: > > 1. Download epel-release-5-4.noarch.rpm (or suitable version) from > http://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F > > 2. Install the EPEL repo list using "rpm -Uvh epel- > release-5-4.noarch.rpm" > > 3. yum install boost141-devel > > 4. ln -s /usr/include/boost141/boost/ /usr/include/boost > > 5. export LDFLAGS="-L/usr/lib64/boost141" > > 6. export LD_LIBRARY_PATH=/usr/lib64/boost141:$LD_LIBRARY_PATH > > *****Fix Gearman benchmark.lo error (before 0.29) *****: > 1. yum install gcc44 gcc-c++ > > 2. export CC="gcc44" > > 3. export CXX="g++44" > > > *****Configure, Make, Make Install (no rinsing or repeating)*****: > 1. ./configure in your gearman folder after using wget for the current release > > 2. make > > 3. make install > > *****INSTALL THE PECL EXTENSION!!! YAY!*****: > 1. pecl install gearman > > If you're running cPanel 11.31.2.x and lower, like me, you will have to > copy it to the correct location due to a cPanel bug. > > 2. cp gearman.so /usr/local/lib/php/extensions/no-debug-non-zts-20090626 > (for me - check yours!) > > 3. chmod 775 gearman.so for good measure! > > More importantly, give me a call if you need any help... seriously. > This was the biggest pain in the ass and I'm a newbie in the Linux > world. > > Number can be found at http://www.cgsmith.net/ > > Thanks guys! > Chris Smith > > -- > You received this bug notification because you are a bug assignee. > https://bugs.launchpad.net/bugs/923183 > > Title: > 0.29 benchmark compilation fails on stange printf with PRIu64 > > Status in Gearman Server and Client Libraries: > Fix Committed > > Bug description: > CXX benchmark/benchmark.lo > benchmark/benchmark.cc: In function 'void benchmark_check_time(gearman_benchmark_st*)': > benchmark/benchmark.cc:30: error: expected `)' before 'PRIu64' > cc1plus: warnings being treated as errors > benchmark/benchmark.cc:40: warning: conversion lacks type at end of format [-Wformat] > benchmark/benchmark.cc:40: warning: too many arguments for format [-Wformat-extra-args] > make[1]: *** [benchmark/benchmark.lo] Error 1 > make[1]: Leaving directory `/root/programs/gearman/gearmand-trunk-487' > make: *** [all] Error 2 > > To manage notifications about this bug go to: > https://bugs.launchpad.net/gearmand/+bug/923183/+subscriptions