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

Dan Bikle dan.bikle at gmail.com
Sat Oct 21 03:25:59 GMT 2006


yes,

those are excellent tips; I am very happy.

One small change I made is that I moved Locomotive to
where it is supposed to live [ I originally placed it in /software ].

These env variables work well for me when I use a normal
terminal instead of the Loco-Terminal:

# .bashrc

export PATH=\
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/bin\
:/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/sbin\
:/Users/maco/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:.

export RUBYLIB=\
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib/ruby/site_ruby/1.8\
:/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib/ruby/site_ruby/1.8/powerpc-
darwin7.9.0\
:/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib/ruby/1.8\
:/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib/ruby/1.8/powerpc-
darwin7.9.0

export
CFLAGS=-I/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/include

export
LDFLAGS='-L/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib
-headerpad_max_install_names'

export
DYLD_FALLBACK_LIBRARY_PATH=/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib:/usr/lib

export
CPPFLAGS=-I/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/include

export LOCOMOTIVE_VERSION=2.0.8

export
CXXFLAGS=-I/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/include


On 10/20/06, Ryan Raaum <ryan.raaum at gmail.com> wrote:
>
>
>
> 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
>
> _______________________________________________
> Locomotive-users mailing list
> Locomotive-users at lists.raaum.org
> http://lists.raaum.org/mailman/listinfo/locomotive-users
>
>
>


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


More information about the Locomotive-users mailing list