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="."

Advertisements

0 Responses to “ruby 1.9.2 and LOAD_PATH”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Blog Stats

  • 221,399 hits

%d bloggers like this: