Installing beanstalkd on Mac OS X 10.5 (Leopard)
We recently had to install beanstalkd the messaging queue system from Philotic, Inc on our development machines. MacPorts didn’t work so we decided to build it ourselves but any guides for installing on OS X are pretty thin on the ground so I thought I’d share what we had to do.
- You need libevent installed for beanstalkd to work so download latest stable release of libevent from their site.
- Unzip and
cdinto the libevent directory - Run
./configure && make - Run
sudo make install - Download latest stable release of beanstalkd from their site
- Unzip and
cdinto the beanstalkd directory - Open the Makefile in your favourite text editor and remove
-WallfromCFLAGS. It causes some warnings when building in OS X for some reason. Save it. - Run
make - Now we just need to move the beanstalkd executable. Run
sudo mv beanstalkd /usr/local/bin/
You should now be able to start the beanstalkd server. Open a new console and type beanstalkd. You should see something like:
% beanstalkd beanstalkd: net.c:90 in unbrake: releasing the brakes
Happy beanstalkd-ing!
Step 7.
There is no -wall in the new Makefiles
Also need to run ‘./configure’ before running ‘make’
Chris 02 July 11:59
In case anyone else has this problem, I had trouble getting beanstalkd to compile — it was using another (bad) version of libevent that somehow ended up on my system. If you compile your own libevent (as described in this post), by default it gets put in /usr/local/lib … in order to use this version of libevent add this to your ./configure for beanstalkd before make:
./configure —includedir /usr/local/lib
make
Scott Trudeau 16 July 13:44