[Locomotive-users] Questions about LOAD_PATH and script/about

Dan Bikle dan.bikle at gmail.com
Sat Oct 21 02:44:51 GMT 2006


People,

I just installed locomotive on my Mac: OS X 10.4.8

I was able to use locomotive to start a rails app I had created on a Linux
box.

So I'm happy that locomotive is working.

I'd like to use the ruby which is baked into locomotive.

First I found irb here:

/software/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/bin/irb

I put this directory at the beginning of my path:

/software/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/bin

I tried irb:


acct1-smiths-powerbook-g4-17:/pt/w/hc/hc11 maco$ which irb
/software/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/bin/irb
acct1-smiths-powerbook-g4-17:/pt/w/hc/hc11 maco$ irb
/software/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/bin/irb:10:in
`require': no such file to load -- irb (LoadError)
    from
/software/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/bin/irb:10
acct1-smiths-powerbook-g4-17:/pt/w/hc/hc11 maco$
acct1-smiths-powerbook-g4-17:/pt/w/hc/hc11 maco$

I looked for irb.rb

I found it:

/software/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib/ruby/1.8/irb.rb

I added it's directory to my LOAD_PATH

acct1-smiths-powerbook-g4-17:/pt/w/hc/hc11 maco$ export
LOAD_PATH=/software/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib/ruby/1.8
acct1-smiths-powerbook-g4-17:/pt/w/hc/hc11 maco$

I tried it again:


acct1-smiths-powerbook-g4-17:/pt/w/hc/hc11 maco$
acct1-smiths-powerbook-g4-17:/pt/w/hc/hc11 maco$ irb
/software/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/bin/irb:10:in
`require': no such file to load -- irb (LoadError)
    from
/software/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/bin/irb:10
acct1-smiths-powerbook-g4-17:/pt/w/hc/hc11 maco$
acct1-smiths-powerbook-g4-17:/pt/w/hc/hc11 maco$
acct1-smiths-powerbook-g4-17:/pt/w/hc/hc11 maco$

So, it looks like the locomotive ruby ignores my LOAD_PATH env variable.

Maybe locomotive is over writing it?

How do I control the LOAD_PATH of ruby inside of locomotive?

-Dan






-- 
bikle at bikle.com
http://bikle.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20061021/25c11e0d/attachment.htm


More information about the Locomotive-users mailing list