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
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*****:
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