Archive for July, 2011

27
Jul
11

ruby 1.9.2 and LOAD_PATH


So, Ruby 1.9.2 removed current directory from LOAD_PATH. This means, that if you have stuff like this:


require "some_lib"

and some_lib is in the current directory, your code will not work, because some_lib will not be found. Quick fix:

export RUBYLIB="."




Blog Stats

  • 215,259 hits