Rails or Ruby Memcached Gem on Ubuntu and Linux

Get the following error when trying to install memcached ruby gem on your Ubuntu or Linux box? rlibmemcached_wrap.c: In function ‘_wrap_memcached_get_sasl_callbacks’: rlibmemcached_wrap.c:12413: error: ‘sasl_callback_t’ undeclared (first use in this function) rlibmemcached_wrap.c:12413: error: ‘result’ undeclared (first use in this function) rlibmemcached_wrap.c:12424: error: expected expression before ‘)’ token rlibmemcached_wrap.c: In function ‘Init_rlibmemcached’: rlibmemcached_wrap.c:13694: error: ‘SASL_OK’ undeclared (first […]

Posted on October 13, 2010 at 9:26 am by Jordan Carter · Permalink · 2 Comments
In: Ruby on Rails, Server Config, Ubuntu Tricks · Tagged with: , ,

Memcached – Libmemcached already built; run ‘rake clean’ first if you need to rebuild.

Trying to install memcached ruby gem on Ubuntu 10.04 Lucid Lynx and I get the error Libmemcached already built; run ‘rake clean’ first if you need to rebuild. Fixed this by installing sudo apt-get install libsasl2-dev gem uninstall memcached && gem install memcached Full Error Stacktrace:

Posted on June 28, 2010 at 2:10 pm by Jordan Carter · Permalink · 5 Comments
In: Ruby on Rails, Server Config, Ubuntu Tricks · Tagged with: , ,

Keep Track of Cache and Invalidate

I am yet to try this but it is a suggestion open to criticism. When caching it can be hard to keep track of where a model has caches and what the cache keys are labeled as.  There are some tricks which allow the definition of the cache key invalidate the cache.  For example if […]

Posted on June 8, 2009 at 7:26 pm by Jordan Carter · Permalink · Leave a comment
In: Uncategorized · Tagged with: ,

Rails Premcache with Memcached

Great write up about how to use memcached to speed up additional requests. http://blog.caboo.se/articles/2006/10/14/premcache-caching-and-precaching-with-memcached One thing I can’t seem to find is a good write up on some basic fragment caching with memcache.  Will write my own in a few days.

Posted on June 1, 2009 at 12:29 pm by Jordan Carter · Permalink · Leave a comment
In: Uncategorized · Tagged with: