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?
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?
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