1. Install one-click Ruby here: http://rubyforge.org/frs/download.php/66871/rubyinstaller-1.8.6-p383-rc1.exe
2. On command line do
gem sources -a http://www.gemcutter.org
gem sources -a http://gems.github.com3. Now do
gem install hparra-serialport
If you use most of the other serialport forks, or the 1.9.1 rubyinstaller, you'll be out of luck. With the method above, you do not need to add a devkit or a devkit-based one-click installer. The Ruby build above is based on mingw, so you'll need MingW to do Win32 building. To test if it will work, try the command 'make' in your command window. You should get the error:
No targets specified, not the error
'make' is not recognized.
Now it's time to test it on Win32 ...
Update: it works! The only oddity I found was that under Win32 a
getccall would produce a
nilobject if there was nothing available from the port. Not sure if this is the most elegant way to deal with it, but I just looped around to ignore those.