From: Tim Ngua Date: 2010-02-04T11:40:34+09:00 Subject: ruby-serialport with Ruby 1.9 error I'm a newbie programmer and I've been trying to communicate with an Arduino using the ruby-serialport library. If I run this: require 'rubygems' require 'serialport' sp = SerialPort.new "COM3", 9600 sp.write "H" puts sp.read # hopefully "OK" ;-) I get this error (as a windows pop-up box): 'The application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix the problem.' and this ruby error in my command line window: D:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-serialport/lib/serialport.rb:1:in `require': 126: The specified module could not be found. - D:/Ruby19/lib/ruby/1.9.1/i386-mingw32/serialport.so (LoadError) from D:/Ruby19/lib/ruby/gems/1.9.1/gems/ruby-serialport/lib/serialport.rb:1:in `' from ser.rb:2:in `require' from ser.rb:2:in `
' As far as I can see, the serialport library was supposed to work with 1.8. There doesn't seem to be a 1.9 version on the GitHub repository either. I'm pretty stuck and don't want to learn Python just so I can write programs for my Arduino (I need to use an email library as well so I can light an LED each time I get a new email - ie. I can't use 'Processing'). Any suggestions much appreciated. -- Posted via http://www.ruby-forum.com/.