ruby-serialport + macosx

40 views
Skip to first unread message

DeRailed

unread,
Mar 14, 2009, 3:29:15 AM3/14/09
to Ruby Arduino Development
Hi,

A bit off topic... But I have been trying to install the
serialport gem to interact with my arduino on max os x leopard.
running into snags...

I am using mac port ruby 1.8.6 0 on a mac book pro

> sudo gem install ruby-serial-port

All is cool - looks like all c-ext compiled ok -

But - in irb

> require 'rubygems'
> require 'serialport'

dyld: NSLinkModule() error
dyld: Symbol not found: _get_line_signals_helper
Referenced from: /opt/local/lib/ruby/gems/1.8/gems/ruby-
serialport-0.7.0/lib/serialport.bundle
Expected in: flat namespace

Trace/BPT trap

Also tried the Kernel::require and require 'serialport.so' but same
results.

Looks like some ld lib that is supposed to be there isn't - try
googling around but no dice...

Any ideas ?

Thanks !!

Ron Evans

unread,
Mar 14, 2009, 10:56:12 AM3/14/09
to ruby-arduino...@googlegroups.com
I switched to http://github.com/toholio/ruby-serialport/tree/master on
github, and have been having excellent results...
--
Ron Evans
310-597-1013
ron....@gmail.com

JD Barnhart

unread,
Mar 14, 2009, 8:41:27 PM3/14/09
to ruby-arduino...@googlegroups.com
I just went through this on a new powerbook (running compiled ruby in usr/lib similar to http://hivelogic.com/articles/2008/02/ruby-rails-leopard)  and after a number of failed attempts with several gem versions, I dropped down to serialport 0.6.0 (http://rubyforge.org/frs/download.php/72/ruby-serialport-0.6.tar.gz) and compiled it (http://www.sfc.wide.ad.jp/~mitsuya/4U/ruby-serialport-macosx.html).  Seems to work fine.

jd
Reply all
Reply to author
Forward
0 new messages