Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > ruby 1.8.6 - serialport.so (i386-mswin32)

Reply
Thread Tools

ruby 1.8.6 - serialport.so (i386-mswin32)

 
 
Sereyvuth Hong
Guest
Posts: n/a
 
      06-13-2008
Hello All,
Am very new with ruby and use ruby 1.8.6 (i386-mswin32), for my first
try is running as bellow.

C:\ruby>ruby miniterm.rb COM3 9600 8 1
(eval):1: (eval):1:in `private_class_method': undefined method `create'
for clas
s `Class' (NameError)
from (eval):1
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
from miniterm.rb:1

I have copy the serialport.so file into
C:\ruby\lib\ruby\1.8\i386-mswin32\
It would be much appreciated if anyone know how to fix this?
Best Regards,
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
nicholasmabry@gmail.com
Guest
Posts: n/a
 
      06-14-2008
On Jun 13, 12:58*pm, Sereyvuth Hong <(E-Mail Removed)>
wrote:
>
> C:\ruby>ruby miniterm.rb COM3 9600 8 1
> (eval):1: (eval):1:in `private_class_method': undefined method `create'
> for clas
> s `Class' (NameError)
> * * * * from (eval):1
> * * * * from
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
> quire'
> * * * * from miniterm.rb:1


While I'm not familiar with the mechanics of RubyGems, it appears that
on at least several platforms its require() modifications are not
compatible with this library [1]. The recommended fix is to load the
library with the original require() method.

Kernel::require "serialport.so"

Since the library has not been updated since 2004, it is likely to
become even less compatible with Ruby environments as they evolve. If
anyone knows of any active alternate projects, I'd be very interested
to hear about them. Good luck with your project!

-Nick

[1] http://blade.nagaokaut.ac.jp/cgi-bin...by-talk/268396
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby extension (C++) on OS X [ruby 1.8.2] and Google-Sketchup [ruby 1.8.5] Nicholas Ruby 3 01-28-2007 01:48 AM
The Ruby Edge - Digg for Ruby and Ruby On Rails roschler Ruby 0 10-15-2006 11:35 PM
ruby-talk, comp.lang.ruby, ruby-talk-google Phrogz Ruby 4 09-06-2006 06:43 PM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
[ANN] ruby-freedb, ruby-serialport, ruby-mp3info moved to Rubyforge guillaume.pierronnet@ratp.fr Ruby 0 08-31-2003 11:57 PM



Advertisments