when I run above script and I am getting following error message, how to
resolved this one?
E:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_re quire': no such file to load -- rio (LoadError) from E:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in re
quire’
welcome to Ruby. You’ll like it
The error you’re getting is due to the fact that your system cannot
find a Ruby software “package” (called a “gem” in Ruby) – rio
To use an installed gem in a script, you need to write
require “rubygems”
require NAME_OF_YOUR_GEM
in your script.
So simply add that require “rubygems” line to your script and see
what happens.
If the rio gem is installed, it’ll work.
Otherwise, you’ll need to install it using