[Locomotive-users] Too many ruby installs on OSX Tiger
Mats Persson
mats at imediatec.co.uk
Tue Oct 3 20:51:26 GMT 2006
Hi Phil,
On 2 Oct 2006, at 22:35, Phil Grimm wrote:
> Hey folks,
> Recent mac convert here... trying to get setup for Rails dev on OSX
> Tiger.
Welcome to the better side ;-) or that should maybe be :P
> It looks like Locomotive is the environment to get on with.
Locomotive is great, but it all depends on what your needs are.
> The problem I'm running into is that I now have like 3 installs of
> ruby:
>
> 1) The 1.8.2 ruby that comes preinstalled with Tiger
> 2) Locomotive-embedded ruby
> 3) DarwinPorts-installed ruby (I installed this thinking I could
> uninstall it to get rid of the old Tiger ruby :)
I too have three installs and it all works perfectly, and you should
absolutely NOT remove the Tiger installed ruby as that may break your
system. (?)
> I should be able to uninstall the "ports" ruby easy enough, just
> not sure if I should at this point.
I can't see a single valid reason to why you should un-install the
'ports' version, unless of course you'd want to compile your own
version. So don't ;-)
> After installing Locomotive, I was trying to get the PATH and
> MANPATH stuff working with the
> Locomotive ruby (and ignoring the Tiger ruby files), but never
> could get man to ignore the
> old ruby man pages and pick up the new ones under Locomotive.
Not 100% sure I fully understand you there, but AFAIK Locomotive
opens up a new Terminal window with all the correct PATHs set if
opened from within Locomotive.
$ echo $PATH
/Users/mats/Applications/Locomotive2/Bundles/
rails112rmagick_ppc.locobundle/framework/bin:/Users/mats/Applications/
Locomotive2/Bundles/rails112rmagick_ppc.locobundle/framework/sbin:/
usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/mats/bin:
$ which ruby
/Users/mats/Applications/Locomotive2/Bundles/
rails112rmagick_ppc.locobundle/framework/bin/ruby
in normal Terminal window:
$ which ruby
/usr/local/bin/ruby
So based on what you're working with, you'll get the correct ruby.
As for MANPATH, well, neither of those produces any output on my
system, and AFAIK the Locomotive bundles does not seem to contain man
pages.
> I searched and couldn't find a (sane) way to uninstall the old
> (Tiger) ruby.
> I supposed you could just start deleting files manually, but that
> sounds risky.
> Do you leave it there and hope it doesn't get in the way?
It can only 'get in the way' IF you don't have the correct PATH set
in .bash_login or .bash_profile, so make sure your $PATH is something
like:
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
Make sure your path to ruby is in the front of the PATH variable,
before Apple's Ruby install.
> What are you all doing?
> Is there a prescription for this?
Hope the above is at least some help on the way.
Kind regards,
Mats
----
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
"RubyOnRails development done the Mac way"
- locomotive.raaum.org -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20061003/b6fc40c8/attachment.htm
More information about the Locomotive-users
mailing list