I think you are asking how to configure the correct boot path . First, in your script, I would do:
puts $:
This should print if you are loading the correct Ruby environment (maybe a problem if you use rbenv or rvm). For example, I get:
/Users/pmu/.rbenv/versions/1.9.3-p194/lib/ruby/site_ruby/1.9.1 /Users/pmu/.rbenv/versions/1.9.3-p194/lib/ruby/site_ruby/1.9.1/x86_64-darwin11.3.0 /Users/pmu/.rbenv/versions/1.9.3-p194/lib/ruby/site_ruby
As long as your loadpath does not contain a directory with script 'other_ruby_script', you will get this error:
LoadError: cannot load such file
So you should try to add the boot path with:
$:.unshift "#{File.dirname(__FILE__)}/../some_path"
If you are not loading the Ruby environment in the first place, your line:
you must configure the boot environment from Rbenv or Rvm
source share