Memcached and memcached gem on Leopard

In the pursuit of utilizing memcached on my 2008 MacBook with Leopard, I’ve been stuck for a while trying to get the memcached gem to compile and install properly using memcached installed through MacPorts.

After stumbling upon the proper procedure at the Peleteiro blog, I finally noticed that it’s actually in the memcached gem docs.

Anyhow, here’s the proper procedure for installing memcached and the gem on Leopard:

  • sudo port install memcached libmemcached
  • sudo env ARCHFLAGS="-arch i386" gem install memcached -- --with-rlibmemcached-include=/opt/local/include --with-rlibmemcached-lib=/opt/local/lib

I might later look into trying interlock or cache_fu, or following some/all of these direction.

One Response

  1. Si Says:

    Thanks for the writeup - most useful

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.