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

6 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)

  4. Andrey Sui says:

    hey
    That’s great post
    It’s work on my computer
    onece again
    Thanks

  5. Eric says:

    This is a great post and it helped me a so much to get memcached installed and running on my new computer. Getting everything running on Snow Leopard and my new mac has been troubling. Your blog post made it easier. Thank you Nicholas!!!

  6. doug livesey says:

    Adam — thanks for the brew tip!
    It rocks!

Leave a Reply