I've been working with memcache-related things lately and ran into a problem where the library I was using just didn't seem to do what its documentation said it would. It turned out that it was making a "gets" call rather than a "get" call - and this functionality wasn't introduced to memcached until version 1.2.4. Closer inspection shows that although Ubuntu Jaunty Jackalope (9.04) is only a few months old, and memcached 1.2.4 is about 18 months old, its not included and Ubuntu versions Hardy, Intrepid and Jaunty all had 1.2.2 version of memcached.
Credit to the Ubuntu people for resolving this issue already - since memcached 1.2.8 is currently pencilled in for Karmic Koala release of Ubuntu later this year - but I can't wait that long so I updated my own memcached, it was pretty easy so here are the steps in case anyone else wants to do the same.
- download memcached from http://www.danga.com/memcached/download.bml
- check you have the dependencies you need. The only thing I didn't have was the libraries for libevent, which you can install through aptitude with aptitude install libevent-dev
- compile as you usually would: configure/make/make install