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 libmemcachedsudo 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.
April 29th, 2008 at 7:57 am
Thanks for the writeup - most useful