help with LOAD_PATH

  • Thread starter Eduardo Yáñez Parareda
  • Start date
E

Eduardo Yáñez Parareda

Hi, I'm in troubles with this variable. I'm running a Linux OS, after logging in, if I type:

echo $LOAD_PATH
..:/home/eyp/Desarrollo/ruby/lib:/home/eyp/Desarrollo/ruby/lib/sybase:/usr/lib/ruby

then I go into irb:

irb
irb(main):001:0> $LOAD_PATH
=> ["/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", "."]
irb(main):002:0>

which LOAD_PATH variable is showed in irb?
 
T

Tim Hunter

Eduardo said:
Hi, I'm in troubles with this variable. I'm running a Linux OS, after
logging in, if I type:

echo $LOAD_PATH
.:/home/eyp/Desarrollo/ruby/lib:/home/eyp/Desarrollo/ruby/lib/sybase:/usr/lib/ruby


then I go into irb:

irb
irb(main):001:0> $LOAD_PATH
=> ["/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", "."]
irb(main):002:0>

which LOAD_PATH variable is showed in irb?

Ruby's LOAD_PATH is a combination of a set of default directories
determined when Ruby is configured/installed, the directories (if any)
defined by the $RUBYLIB environment variable, and any directories
specified by -I options on the Ruby command line. It has nothing to do
with any $LOAD_PATH environment variable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top