<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Beachballin' &#187; failing</title> <atom:link href="http://cdslash.net/tag/failing/feed/" rel="self" type="application/rss+xml" /><link>http://cdslash.net</link> <description>A sysadmin/programmer/Mac geek blog</description> <lastBuildDate>Fri, 12 Feb 2010 21:34:07 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1-alpha</generator> <item><title>Memcached, gems, and Macports</title><link>http://cdslash.net/2009/06/memcached-gems-and-macports/</link> <comments>http://cdslash.net/2009/06/memcached-gems-and-macports/#comments</comments> <pubDate>Wed, 10 Jun 2009 22:14:18 +0000</pubDate> <dc:creator>dan</dc:creator> <category><![CDATA[Geekery]]></category> <category><![CDATA[Interblogs]]></category> <category><![CDATA[Macintosh]]></category> <category><![CDATA[failing]]></category> <category><![CDATA[gems]]></category> <category><![CDATA[gist]]></category> <category><![CDATA[github]]></category> <category><![CDATA[macports]]></category> <category><![CDATA[memcached]]></category> <category><![CDATA[ruby in the sky with diamonds]]></category> <category><![CDATA[rubygems]]></category> <category><![CDATA[scaling]]></category><guid isPermaLink="false">http://cdslash.net/?p=299</guid> <description><![CDATA[I actually really like Macports; it&#8217;s got a lot of software, it&#8217;s well-maintained, it works really well. Kudos to the Macports guys. We have been having a problem with ruby though, or specifically with the memcached gem for Ruby. The problem is that it won&#8217;t compile with the latest versions of libmemcached. The latest, you]]></description> <content:encoded><![CDATA[<p>I actually really like Macports; it&#8217;s got a lot of software, it&#8217;s well-maintained, it works really well. Kudos to the Macports guys.</p><p>We have been having a problem with ruby though, or specifically with the memcached gem for Ruby. The problem is that it won&#8217;t compile with the latest versions of libmemcached. The latest, you see is 0.30, but it won&#8217;t compile with 0.26 or higher. In fact, if you&#8217;re using version 0.14 of the memcached gem, it won&#8217;t compile with 0.24 or lower. Oh, and it won&#8217;t compile with 0.25 either.</p><p>In fact, it won&#8217;t compile at all with any version of libmemcached for most people, and if it does it rarely works.</p><p>Unfortunately, the version of libmemcached required, 0.25.14, is only available (as far as I can find) on <a href="http://blog.evanweaver.com/articles/2009/01/24/secret-codes/" onclick="pageTracker._trackPageview('/outgoing/blog.evanweaver.com/articles/2009/01/24/secret-codes/?referer=');">Evan Weaver&#8217;s blog post</a> mentioning it. For people like me who like to keep everything package-managed when possible, this is a hassle. There&#8217;s no one-line command to make everything work, set it all up, and get it going. Kind of ugly, imho.</p><p>Fortunately, the ports system is as flexible as it is powerful, and you can easily hack the ports file to know about this new, better version. For you, I have done this, and you can <a href="http://github.com/danudey/miscellany/tree/master/misc-hacks/macports" onclick="pageTracker._trackPageview('/outgoing/github.com/danudey/miscellany/tree/master/misc-hacks/macports?referer=');">find it in my github repo</a> if you so desire, though I&#8217;ll include it here for reference. Behold!</p> <script src="http://gist.github.com/127532.js" type="text/javascript"></script> <p>Notice the &#8216;variant&#8217; section at the bottom; that&#8217;s all I had to add to add support for this edge-case to Macports. Hopefully, as a result, the Macports maintainer will be willing to add this change into the official portfile. I suppose we&#8217;ll see. In the meantime, if you want to add this functionality, you need only replace your current portfile with <a href="http://github.com/danudey/miscellany/tree/master/misc-hacks/macports" onclick="pageTracker._trackPageview('/outgoing/github.com/danudey/miscellany/tree/master/misc-hacks/macports?referer=');">the one in my GitHub repo</a>. Instructions, paths, and commands are all at that URL. Enjoy!</p> ]]></content:encoded> <wfw:commentRss>http://cdslash.net/2009/06/memcached-gems-and-macports/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached (user agent is rejected)
Database Caching 4/12 queries in 0.036 seconds using memcached

Served from: cdslash.net @ 2010-09-10 12:49:45 -->