[MacRuby-devel] REXML

Matt Aimonetti mattaimonetti at gmail.com
Fri May 22 09:59:49 PDT 2009


For XML, you can use Cocoa API or if you want to ue REXML, you need to use
the hot patch I mentioned there:

http://www.macruby.org/trac/ticket/134

Regarding the serialport library, I can't seem to see it on rubyforge, so
I'm not sure what you are referring to.

- Matt

On Fri, May 22, 2009 at 9:44 AM, Robert Rice <rice.audio at pobox.com> wrote:

> Dear MacRuby development team:
>
> I am new to Ruby and I have an application that I would like to port to
> MacRuby. The two extensions I will need are XML and serial port I/O.
> So far I have not been able to get them to work:
>
> Last login: Fri May 22 12:31:48 on ttys000
> new-host:~ robertrice$ macirb
> >> require "rexml/document"
> NameError: uninitialized constant REXML::Attribute::NAME_STR
>        from
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/attribute.rb:18:in
> `<class:Attribute>'
>        from
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/attribute.rb:9:in
> `<module:REXML>'
>        from
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/attribute.rb:4:in
> `<top (required)>'
>        from
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/element.rb:3:in
> `require'
>        from
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/element.rb:3:in
> `<top (required)>'
>        from
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/document.rb:1:in
> `require'
>        from
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1/rexml/document.rb:1:in
> `<top (required)>'
>        from (irb):1:in `require'
>        from (irb):1
>        from /usr/local/bin/macirb:12:in `<main>'
> >> require "rubygems"
> => false
> >> require "serialport"
> LoadError: no such file to load -- serialport
>        from (irb):3:in `require'
>        from (irb):3
>        from /usr/local/bin/macirb:12:in `<main>'
> >> exit
> new-host:~ robertrice$ exit
> logout
>
> [Process completed]
>
> Can anyone help me? Do I have a bad installation of MacRuby?
>
> Thanks,
> Bob Rice
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090522/dcae87e9/attachment.html>


More information about the MacRuby-devel mailing list