# Ruby 1.8.6 - serialport.so (i386-mswin32)

**URL:** <https://www.ruby-forum.com/t/ruby-1-8-6-serialport-so-i386-mswin32/140426>\
**Category:** Ruby\
**Created:** [June 13, 2008, 7:59pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-serialport-so-i386-mswin32/140426 "2008-06-13T19:59:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsv-robert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ecccb3/32.png) [@hsv-robert](https://www.ruby-forum.com/u/hsv-robert)\
**Post date:** [June 13, 2008, 7:59pm UTC](https://www.ruby-forum.com/t/ruby-1-8-6-serialport-so-i386-mswin32/140426/1 "2008-06-13T19:59:12Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![hsv-robert](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/ecccb3/32.png) [@hsv-robert](https://www.ruby-forum.com/u/hsv-robert)\
**Post date:** [June 15, 2008, 1:45am UTC](https://www.ruby-forum.com/t/ruby-1-8-6-serialport-so-i386-mswin32/140426/2 "2008-06-15T01:45:18Z")

</div>

On Jun 13, 12:58 pm, Sereyvuth H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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/scat.rb/ruby/ruby-talk/268396](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/268396)
