Skip to content

Instantly share code, notes, and snippets.

@tadas-s
Last active October 18, 2017 00:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadas-s/5452544 to your computer and use it in GitHub Desktop.
Save tadas-s/5452544 to your computer and use it in GitHub Desktop.
Compiling Gearman 1.1.6 + PHP module on Centos 5.9

Gearman 1.1.6 on Centos 5.9 + PHP

Please note that this is not a complete-step-by-step solution but rather a set of notes that might help to build Gearman 1.1.6 on Centos 5.9.

Some other helpful notes can be found here: http://gearman.info/build/centos5-8.html

Building Gearman

yum install boost141 boost141-devel gcc44 gcc44-c++ libevent-devel mysql-devel
export CC="gcc44"
export CFLAGS="-std=gnu99"
export CXX="gcc44-c++"
export CPPFLAGS="-I/usr/include/boost141"
export LDFLAGS="-L/usr/lib64/boost141"
CC=gcc44 CXX=g++44 ./configure
make
make install

Building PHP module

# Download source, extract and cd there
pecl download gearman-1.1.1
...

# Build
phpize
./configure
make
make install
# profit!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment