I'm trying to install Rails 3 on a brand new MacBook Pro running OS X
10.6.3, Ruby 1.8.7, and Rails 2.3.5 and I'm wondering if I've hosed
myself. So far, I've run these commands:
However, when I run the last command, I get this error:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/bin directory.
I think it wants me to run the command with sudo so that it can write
over /usr/bin/rails. But if I do that, won't I be overwriting my
Rails 2.3.5 executable? I don't want to do that. Instead, I'd like
to keep both versions of Rails. Can anyone help?
Thanks. I do understand that. However, my question is that if I
execute the command "sudo gem install rails --pre", won't I be
overwriting my existing Rails 2.3.5 executable which resides in /usr/
bin? That's what I'm really worried about. I'd like to be able to
have both Rails 2.3.5 and the Rails 3 beta existing on my machine at
the same time. Would running the gem install command alter my /usr/
bin/rails executable such that it would contain both versions or
should it create a separate and distinct Rails 3 beta executable?
I think this article by Brian Cardarella may answer my question. I'll
figure this out and document what I had to do for all the other
"noobs" out there.