Installing Memcache on Snow Leopard

October 14th, 2009 by admin Leave a reply »

Memcache is a great way to store session data in Rails.  It is easy to install on Linux (sudo apt-get install memcached), but how about on Mac OS Snow Leopard?  Follow these directions and you should be up and going:

$ curl -O http://www.monkey.org/~provos/libevent-1.4.12-stable.tar.gz
$ tar xzvf libevent-1.4.12-stable.tar.gz
$ cd libevent-1.4.12-stable
$ ./configure
$ make
$ make verify
$ sudo make install
$ curl -O http://memcached.googlecode.com/files/memcached-1.4.1.tar.gz
$ tar xzvf memcached-1.4.1.tar.gz
$ cd memcached-1.4.1
$ ./configure
$ make
$ make test
$ sudo make install
$ memcached -d -P pidfile -l 127.0.0.1
Advertisement

3 comments

  1. Alternative:
    * Install Homebrew ( http://github.com/mxcl/homebrew )
    * brew install memcached
    * enjoy!

  2. Brian Yamabe says:

    I was wondering if you had an opinion on installing the MacPorts version. I like that route to manage packages, but it’s not always the best way.

  3. admin says:

    sudo port install memcached @1.2.6 (or whatever version you need/desire)

Leave a Reply