I am running ruby 1.9.2 on Windows and trying to transcode the code that worked in Ruby 1.8. The code uses Open4.popen4, which previously worked fine. In version 1.9.2, I did the following:
- Installed POpen4 via
gem install POpen4 - POpen4 required via
require 'popen4' - Trying to use POpen4 as:
Open4.popen4("cmd") {|io_in,io_out,io_er| ... } Open4.popen4("cmd") {|io_in,io_out,io_er| ... }
When I do this, I get an error: no such file to load -- win32/open3
If I try to install win32-open3 ( gem install win32-open3 ), I get an error:
win32-open3 requires Ruby version < 1.9.0
Does anyone know how to get around this problem?
ruby
Aaron janes
source share