Seventytwo Post

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.

  1. You need libevent installed for beanstalkd to work so download latest stable release of libevent from their site.
  2. Unzip and cd into the libevent directory
  3. Run ./configure && make
  4. Run sudo make install
  5. Download latest stable release of beanstalkd from their site
  6. Unzip and cd into the beanstalkd directory
  7. Open the Makefile in your favourite text editor and remove -Wall from CFLAGS. It causes some warnings when building in OS X for some reason. Save it.
  8. Run make
  9. 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!

Comments

  • 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

Post a new comment

Want to add some formatting? Textile is enabled

Summary

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.

Published on
Saturday, 25 Oct 2008
Author
Alistair Holt
Navigation
Projects
Recent Posts
Feeds