[Locomotive-users] Questions about LOAD_PATH and script/about
Ryan Raaum
ryan.raaum at gmail.com
Sat Oct 21 02:53:21 GMT 2006
On 10/20/06, Dan Bikle <dan.bikle at gmail.com> wrote:
>
> 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
It would be easier to open the terminal from within Locomotive (apple-T, or
from the menu). (Also, for the approach you're taking, try RUBYLIB instead
of LOAD_PATH, but you will need several more directories - run "env" from a
Locomotive opened terminal to see what else is set.)
Best,
-r
--
> bikle at bikle.com
> http://bikle.com
> _______________________________________________
> Locomotive-users mailing list
> Locomotive-users at lists.raaum.org
> http://lists.raaum.org/mailman/listinfo/locomotive-users
>
>
>
--
Ryan Raaum
http://raaum.org
http://locomotive.raaum.org -- Self contained one-click Rails for Mac OS X
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20061021/97892c54/attachment.htm
More information about the Locomotive-users
mailing list