I am trying to understand my Ruby Load Path settings. I am on Fedora
Core 5 Linux machine. I load irb and print the load path as follows:
irb(main):001:0> puts $:
/usr/lib/ruby/site_ruby/1.8
/usr/lib/ruby/site_ruby/1.8/i386-linux
/usr/lib/ruby/site_ruby
/usr/lib/site_ruby/1.8
/usr/lib/site_ruby/1.8/i386-linux
/usr/lib/site_ruby
/usr/lib/ruby/1.8
/usr/lib/ruby/1.8/i386-linux
.
=> nil
It was awhile ago, but I believe I rpm installed ruby on my machine. At
that time, I had no idea what load path was all about. Now that I am
learning about it, I am puzzled to what I see when I print the load path
stored in global variable "$:" Why are "site_ruby" entries duplicated?
That is, if we factor out /usr/lib folders, I have site_ruby by itself
and also under ruby? Does that make sense? Everything seems to be
working fine in my hacking trips, but I will be the first one to admit
it is more by luck than deliberate design.
Thanks in advance.
Bharat
···
--
Posted via http://www.ruby-forum.com/.