<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Wolfmans Howlings: Ruby 1.8.6 on Openmoko Freerunner</title>
    <link>http://blog.wolfman.com/articles/2008/08/10/ruby-1-8-6-on-openmoko-freerunner</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>A programmers Blog about Ruby, Rails and a few other issues</description>
    <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 replcaed 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="http://blog.wolfman.com/files/ruby_1.8.6-p287-r1_armv4t.ipk"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you want ruby 1.9 you can find it
&lt;a href="http://blog.sparkymat.net/2008/08/10/ruby-19-on-openmoko"&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="http://blog.wolfman.com/files/jove"&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;a href="http://technorati.com/tag/openmoko+ruby" rel="tag"&gt;&lt;/a&gt;
&lt;a href="http://technorati.com/tag/openmoko+jove" rel="tag"&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 10 Aug 2008 23:09:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:9d4a5ae8-81bd-48b5-8fc4-0fcf5007870a</guid>
      <author>Jim Morris</author>
      <link>http://blog.wolfman.com/articles/2008/08/10/ruby-1-8-6-on-openmoko-freerunner</link>
      <category>Openmoko</category>
      <category>ruby</category>
      <category>freerunner</category>
      <trackback:ping>http://blog.wolfman.com/articles/trackback/343</trackback:ping>
    </item>
    <item>
      <title>"Ruby 1.8.6 on Openmoko Freerunner" by Philip Rhoades</title>
      <description>&lt;p&gt;Wolfman,&lt;/p&gt;

&lt;p&gt;Thanks for that! - I have just got my Neo but I was already missing Ruby!&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;Phil. (phil at pricom dot com dot au)&lt;/p&gt;</description>
      <pubDate>Sun, 28 Sep 2008 10:48:09 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:f6751c06-c443-4149-bc8d-51222d169fbe</guid>
      <link>http://blog.wolfman.com/articles/2008/08/10/ruby-1-8-6-on-openmoko-freerunner#comment-276</link>
    </item>
  </channel>
</rss>
