# Installing ruby-serial port

**URL:** <https://rubytalk.org/t/installing-ruby-serial-port/63337>\
**Category:** ruby-talk\
**Created:** [14 August 2011 22:41 UTC](https://rubytalk.org/t/installing-ruby-serial-port/63337 "2011-08-14T22:41:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saul\_Glass](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Saul\_Glass](https://rubytalk.org/u/Saul_Glass)\
**Post date:** [14 August 2011 22:41 UTC](https://rubytalk.org/t/installing-ruby-serial-port/63337/1 "2011-08-14T22:41:21Z")

</div>

Hi guys,

Ive been trying to install the gem, ruby-serialport but having troubles  
with it on windows. I have installed the Devkit but no luck with  
installing the serialport. I have seen a few people having similar  
problems but haven't found a solution.

C:\Ruby192\bin\>gem install ruby-serialport  
Temporarily enhancing PATH to include DevKit...  
Building native extensions. This could take a while...  
ERROR: Error installing ruby-serialport:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C:/Ruby192/bin/ruby.exe extconf.rb  
checking for OS... mingw  
checking for termios.h... no  
\*\*\* extconf.rb failed \*\*\*  
Could not create Makefile due to some reason, probably lack of  
necessary libraries and/or headers. Check the mkmf.log file for more  
details. You may need configuration options.

Provided configuration options:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-dir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-dir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-include=${opt-dir}/include  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-lib  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-lib=${opt-dir}/lib  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-make-prog  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-make-prog  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--srcdir=.  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--curdir  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--ruby=C:/Ruby192/bin/ruby

Gem files will remain installed in  
C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-serialport-0.7.0 for  
inspection.  
Results logged to  
C:/Ruby192/lib/ruby/gems/1.9.1/gems/ruby-serialport-0.7.0/ext/gem\_make.out

Help will be much appreciated!! Thanks

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
