ruby -r is just the same as ‘require’. In irb, try
require "exerb/mkrbc"
It should fail with the same LoadError. So you fix it by making the library
available in the library search path. The easiest way is to ‘cd’ to the
directory one level above exerb, since by default the library search path
includes “.” (the current directory)
Other options: move the exerb folder into the right place (check it contains
mkrbc.rb of course); or:
$:.unshift "/path/to/dir"
require "exerb/mkrbc"
Or I think you can set an environment variable (RUBYLIB or RUBY_LIB?) to
point at the right place.
Regards,
Brian.
···
On Sat, Jul 05, 2003 at 12:19:29AM +0900, Kingsley Hendrickse wrote:
which on my windows box was : ruby -r exerb/mkrbc c:/ip.rb
the reply : ruby:No such file to load – exerb/mkrbc (LoadError)