# Serial Port Control with Ruby

**URL:** <https://www.ruby-forum.com/t/serial-port-control-with-ruby/170105>\
**Category:** Ruby\
**Created:** [June 12, 2009, 10:53am UTC](https://www.ruby-forum.com/t/serial-port-control-with-ruby/170105 "2009-06-12T10:53:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![super141](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@super141](https://www.ruby-forum.com/u/super141)\
**Post date:** [June 12, 2009, 10:53am UTC](https://www.ruby-forum.com/t/serial-port-control-with-ruby/170105/1 "2009-06-12T10:53:22Z")

</div>

Hi All,

I am facing problem with serial port acees in windows-xp system

c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_re quire': no such file to load -- ../Win32Serial (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`re  
quire’  
from C:/Documents and Settings/s\_babu/Desktop/AUTO/serial1.rb:1

C:\Documents and Settings\s\_babu\Desktop\ru\win32serial\>nmake makefi  
‘nmake’ is not recognized as an internal or external command,  
operable program or batch file.

I am getting the errors  
please help me  
how can i acesss serial port through ruby in windows OS

Thanks,  
sathish

---

<div class="post-metadata">

**Author:** ![super141](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@super141](https://www.ruby-forum.com/u/super141)\
**Post date:** [June 12, 2009, 11:03am UTC](https://www.ruby-forum.com/t/serial-port-control-with-ruby/170105/2 "2009-06-12T11:03:59Z")

</div>

C:\Documents and Settings\s\_babu\Desktop\ru\

> win32serial\>nmake makefi  
> ‘nmake’ is not recognized as an internal or external command,  
> operable program or batch file.

What is that trying to tell you? Read it a few times, take a deep  
breath,  
think about it over coffee .

Jayanth

---

<div class="post-metadata">

**Author:** ![super141](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@super141](https://www.ruby-forum.com/u/super141)\
**Post date:** [June 12, 2009, 11:06am UTC](https://www.ruby-forum.com/t/serial-port-control-with-ruby/170105/3 "2009-06-12T11:06:56Z")

</div>

Srijayanth S. wrote:

> C:\Documents and Settings\s\_babu\Desktop\ru\
> 
> > win32serial\>nmake makefi  
> > ‘nmake’ is not recognized as an internal or external command,  
> > operable program or batch file.
> 
> What is that trying to tell you? Read it a few times, take a deep  
> breath,  
> think about it over coffee .
> 
> Jayanth

Hi Jayanth,

I want to acess comport(RS-232) through ruby…  
u got it  
i am facing above errors

---

<div class="post-metadata">

**Author:** ![super141](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@super141](https://www.ruby-forum.com/u/super141)\
**Post date:** [June 12, 2009, 11:12am UTC](https://www.ruby-forum.com/t/serial-port-control-with-ruby/170105/4 "2009-06-12T11:12:47Z")

</div>

On Fri, Jun 12, 2009 at 2:36 PM, Sathish Babu  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> Srijayanth S. wrote:
> 
> > C:\Documents and Settings\s\_babu\Desktop\ru\
> > 
> > > win32serial\>nmake makefi  
> > > ‘nmake’ is not recognized as an internal or external command,  
> > > operable program or batch file.

> u got it  
> i am facing above errors

Let me put it to you this way. If you aren’t able to understand the  
error  
message that its giving you, there is nobody here who can help you  
access  
the com port. Please be more clear. Construct short sentences, lay them  
down  
one by one in a logical sequence as follows:

1. I need to access the serial port.
2. I tried installing \<name\_of\_gem\>
3. It won’t compile.
4. Why?
5. It won’t compile because 

Jayanth

---

<div class="post-metadata">

**Author:** ![super141](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@super141](https://www.ruby-forum.com/u/super141)\
**Post date:** [June 12, 2009, 1:24pm UTC](https://www.ruby-forum.com/t/serial-port-control-with-ruby/170105/5 "2009-06-12T13:24:45Z")

</div>

Srijayanth S. wrote:

> On Fri, Jun 12, 2009 at 2:36 PM, Sathish Babu  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:
> 
> > Srijayanth S. wrote:
> > 
> > > C:\Documents and Settings\s\_babu\Desktop\ru\
> > > 
> > > > win32serial\>nmake makefi  
> > > > ‘nmake’ is not recognized as an internal or external command,  
> > > > operable program or batch file.
> 
> > u got it  
> > i am facing above errors
> 
> Let me put it to you this way. If you aren’t able to understand the  
> error  
> message that its giving you, there is nobody here who can help you  
> access  
> the com port. Please be more clear. Construct short sentences, lay them  
> down  
> one by one in a logical sequence as follows:
> 
> 1. I need to access the serial port.
> 2. I tried installing \<name\_of\_gem\>
> 3. It won’t compile.
> 4. Why?
> 5. It won’t compile because 
> 
> Jayanth

Ok jayanth,  
this is the frist time i m sending query…  
ok  
1.I need acees to the comport COM1.  
2. I try to install “win32serial”,install -c -p -m 0755 serialport.so  
but its not working.  
i m getting above shown errors.  
please tell me how to use serial port in windows

---

<div class="post-metadata">

**Author:** ![super141](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/edb3f5/32.png) [@super141](https://www.ruby-forum.com/u/super141)\
**Post date:** [June 12, 2009, 1:40pm UTC](https://www.ruby-forum.com/t/serial-port-control-with-ruby/170105/6 "2009-06-12T13:40:14Z")

</div>

On Fri, Jun 12, 2009 at 4:54 PM, Sathish Babu  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> > > >
> > 
> > message that its giving you, there is nobody here who can help you

Sathish,

The error you face is not a Ruby problem. What happens when you type in  
Sathish in a command prompt? Try opening a command prompt in windows,  
and  
type in Sathish. You will get a “Bad Command Or Filename” or something  
like  
that. Why do you think this happens? Why does the command line not  
recognize  
the name Sathish?

Jayanth
