<?xml version='1.0' encoding='utf-8' ?>
<rss version='2.0' xmlns:dc='http://purl.org/dc/elements/1.1/'>
  <channel>
    <title>Wolfmans Howlings: Ruby 1.8.6 on Openmoko Freerunner</title>
    <link>http://blog.wolfman.com/articles/2008/8/10/ruby-1-8-6-on-openmoko-freerunner</link>
    <description>A programmers Blog about Ruby, Rails and a few other issue</description>
    <language>en-us</language>
    <ttl>40</ttl>
    <item>
      <title>Ruby 1.8.6 on Openmoko Freerunner</title>
      <description>
        &lt;p&gt;I finally got around to building ruby 1.8.6 for my FR. I modified the
        ruby bitbake files that I found in the Mokomakefile openembedded
        directory. I am not sure how one actually is meant to do this, as the
        OE site is down and the docs don't explain it. So I just replaced the
        1.8.5 ones with the 1.8.6 ones. I also managed to fix a bug in the
        1.8.5 BB recipe that was causing socket to not build.&lt;/p&gt;
        
        &lt;p&gt;I also got the ruby dbus library to work, although I don't know what to
        do with it yet :)&lt;/p&gt;
        
        &lt;p&gt;So until I figure out how you are meant to add a new version to OE,
        I have put the ipk &lt;a href=&quot;http://blog.wolfman.com/files/ruby_1.8.6-p287-r1_armv4t.ipk&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
        
        &lt;p&gt;If you want ruby 1.9 you can find it
        &lt;a href=&quot;http://blog.sparkymat.net/2008/08/10/ruby-19-on-openmoko&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
        
        &lt;p&gt;To install it just ssh into your FR and type&lt;/p&gt;
        
        &lt;pre&gt;&lt;code&gt;&amp;gt; wget http://blog.wolfman.com/files/ruby_1.8.6-p287-r1_armv4t.ipk
        &amp;gt; opkg install ruby_1.8.6-p287-r1_armv4t.ipk
        &lt;/code&gt;&lt;/pre&gt;
        
        &lt;p&gt;If you want to install gem then you need to ssh into the FR and do
        this...&lt;/p&gt;
        
        &lt;pre&gt;&lt;code&gt;&amp;gt; wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz
        &amp;gt; tar xzvf rubygems-1.2.0.tgz
        &amp;gt; cd rubygems-1.2.0
        &amp;gt; ruby setup.rb --no-rdoc --no-ri
        &lt;/code&gt;&lt;/pre&gt;
        
        &lt;p&gt;I recommend you do the no doc and no ri otherwise it takes forever.&lt;/p&gt;
        
        &lt;p&gt;As for dbus...&lt;/p&gt;
        
        &lt;pre&gt;&lt;code&gt;&amp;gt; wget https://trac.luon.net/data/ruby-dbus/releases/ruby-dbus-0.2.1.tar.gz
        &amp;gt; tar xzvf ruby-dbus-0.2.1.tar.gz
        &amp;gt; cd ruby-dbus-0.2.1
        &amp;gt; ruby setup.rb config
        &amp;gt; ruby setup.rb setup
        &amp;gt; ruby setup.rb install
        &lt;/code&gt;&lt;/pre&gt;
        
        &lt;p&gt;look in the examples to see how to use it, I tries this...&lt;/p&gt;
        
        &lt;pre&gt;&lt;code&gt;&amp;gt; ruby examples/utils/listnames.rb --system
            org.freedesktop.DBus
            :1.3
            :1.4
            org.freedesktop.Avahi
            :1.0
            org.bluez
            :1.1
            :1.6
            :1.2
            org.freedesktop.Hal
        &lt;/code&gt;&lt;/pre&gt;
        
        &lt;p&gt;So it seems to work.&lt;/p&gt;
        
        &lt;p&gt;Let me know what you do with it.&lt;/p&gt;
        
        &lt;p&gt;I also built jove, my favorite mini-emacs editor, &lt;a href=&quot;http://blog.wolfman.com/files/jove&quot;&gt;this&lt;/a&gt; is just an
        executable just copy to /usr/bin Use instead of vi or nano.&lt;/p&gt;
        
        &lt;p&gt;&lt;em&gt;UPDATE&lt;/em&gt; The bitbake recipe I used to build ruby 1.8.6 is &lt;a href=&quot;http://blog.wolfman.com/files/ruby.bb.tar.gz&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
        
        &lt;p&gt;&lt;a href=&quot;http://technorati.com/tag/openmoko+ruby&quot; rel=&quot;tag&quot;&gt;&lt;/a&gt;
        &lt;a href=&quot;http://technorati.com/tag/openmoko+jove&quot; rel=&quot;tag&quot;&gt;&lt;/a&gt;&lt;/p&gt;
      </description>
      <author>Jim Morris</author>
      <pubDate>Mon, 05 Oct 2009 23:56:11 -0700</pubDate>
      <link>http://blog.wolfman.com/articles/2008/8/10/ruby-1-8-6-on-openmoko-freerunner</link>
      <guid isPermaLink='false'>urn:uuid:9d4a5ae8-81bd-48b5-8fc4-0fcf5007870a</guid>
    </item>
    <item>
      <title>"Ruby 1.8.6 on Openmoko Freerunner" by Philip Rhoades</title>
      <description>
        Wolfman,
        
        Thanks for that! - I have just got my Neo but I was already missing Ruby!
        
        Regards,
        
        Phil. (phil at pricom dot com dot au)
      </description>
      <pubDate>Sun, 28 Sep 2008 10:48:09 -0700</pubDate>
      <link>http://blog.wolfman.com/posts/39#comment-207</link>
      <guid isPermaLink='false'>urn:uuid:f6751c06-c443-4149-bc8d-51222d169fbe</guid>
    </item>
    <item>
      <title>"Ruby 1.8.6 on Openmoko Freerunner" by rudi</title>
      <description>&quot;bug in the 1.8.5 BB recipe that was causing socket to not build.&quot;... could you give me the recipe patch?</description>
      <pubDate>Mon, 05 Oct 2009 01:47:19 -0700</pubDate>
      <link>http://blog.wolfman.com/posts/39#comment-271</link>
      <guid isPermaLink='false'>urn:uuid:1874696b-8415-4baf-b620-5cb0d727ba39</guid>
    </item>
    <item>
      <title>"Ruby 1.8.6 on Openmoko Freerunner" by wolfman</title>
      <description>
        If I remember the critical bit to enable sockets is this...
        
        EXTRA_OECONF= &quot;--enable-wide-getaddrinfo&quot;
        
        I added the bitbake recipe to the article.
      </description>
      <pubDate>Mon, 05 Oct 2009 23:51:53 -0700</pubDate>
      <link>http://blog.wolfman.com/posts/39#comment-272</link>
      <guid isPermaLink='false'>urn:uuid:190338c2-7a8c-49ef-9fbc-6c6a6489a2e7</guid>
    </item>
  </channel>
</rss>
