# Mac setup issue

**URL:** <https://www.ruby-forum.com/t/mac-setup-issue/105237>\
**Category:** Rails\
**Created:** [May 27, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/mac-setup-issue/105237 "2007-05-27T21:31:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelLatta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@MichaelLatta](https://www.ruby-forum.com/u/MichaelLatta)\
**Post date:** [May 27, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/mac-setup-issue/105237/1 "2007-05-27T21:31:52Z")

</div>

I just installed an updated set of tools (ruby, rails, etc) under my  
home directory for my mac 10.4, since I did not want to disturb the  
pre-installed environment in case something in the system relies on  
that. The problem I have is that the rake command is still using the  
old stack rather than the new one, even though the new rake is there.  
I presume the ‘rake’ command itself is coming from the other location,  
but do not see how. ‘ruby -v’ shows the new version number. ‘gem  
list’ lists the gems in the new location. But, ‘rake -v’ fails  
because me environment.rb calls for the version of rails in the new  
environment and it is seeing the version of rails in the old  
location. The new location is on both ends of the path, and there is  
nothing specific to rake in the path, and no alias defined for ‘rake’  
that would have a hard coded path. Any suggestions would be welcome.  
Is there a sym link in some common directory I missed?

---

<div class="post-metadata">

**Author:** ![MichaelLatta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@MichaelLatta](https://www.ruby-forum.com/u/MichaelLatta)\
**Post date:** [May 27, 2007, 9:38pm UTC](https://www.ruby-forum.com/t/mac-setup-issue/105237/2 "2007-05-27T21:38:53Z")

</div>

I got it. A little spotlight and a corrected path fixed it.

Michael

---

<div class="post-metadata">

**Author:** ![MichaelLatta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@MichaelLatta](https://www.ruby-forum.com/u/MichaelLatta)\
**Post date:** [May 27, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/mac-setup-issue/105237/3 "2007-05-27T21:39:53Z")

</div>

On 5/27/07, MichaelLatta [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> because me environment.rb calls for the version of rails in the new  
> environment and it is seeing the version of rails in the old  
> location. The new location is on both ends of the path, and there is  
> nothing specific to rake in the path, and no alias defined for ‘rake’  
> that would have a hard coded path. Any suggestions would be welcome.  
> Is there a sym link in some common directory I missed?

it sounds like a path problem, the old rake is found before the new.  
what  
does  
% which rake  
display? the old rake?

if you decide to clean up your setup and start anew, i would recommend  
james  
duncan davidson’s sandboxing rails with macports setup:  
[http://blog.duncandavidson.com/2006/04/sandboxing\_rail.html](http://blog.duncandavidson.com/2006/04/sandboxing_rail.html)

cheers,  
jean-pierre

---

<div class="post-metadata">

**Author:** ![MichaelLatta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@MichaelLatta](https://www.ruby-forum.com/u/MichaelLatta)\
**Post date:** [May 28, 2007, 8:17am UTC](https://www.ruby-forum.com/t/mac-setup-issue/105237/4 "2007-05-28T08:17:34Z")

</div>

> if you decide to clean up your setup and start anew, i would recommend james  
> duncan davidson’s sandboxing rails with macports setup:  
> \<[http://blog.duncandavidson.com/2006/04/sandboxing\_rail.html](http://blog.duncandavidson.com/2006/04/sandboxing_rail.html)

If it’s just for development (meaning: you deploy on an external  
server), much simpler sandboxes can be build with Locomotive  
[http://locomotive.raaum.org/](http://locomotive.raaum.org/)

To create multiple sandboxes, you just have to duplicate the bundles  
(you have to modif the name of the sdb manually, but it’s easy)

## Alain R.

[http://blog.ravet.com](http://blog.ravet.com)
