1

As I know,

ruby -e 'puts RUBY_VERSION'

will print out ruby version. In Ubuntu 14.04, they will print

1.9.3

but its libraries path is

/usr/lib/ruby/1.9.1
  • Why are they different?
  • How can I get the latter one?
Like
  • 1,470
  • 15
  • 21

1 Answers1

2
  • Why are they different?

    Because compatible Ruby versions (often (but not always) within the same major version) share the libraries. Ruby 1.9.3 share the libraries with 1.9.1.

  • How can I get the latter one?

    $LOAD_PATH
    

    or

    Gem.default_path
    
sawa
  • 165,429
  • 45
  • 277
  • 381