问题
From reading this,
http://www.afp548.com/article.php?story=lion-server-review
I see Apple has dropped MySQL in favour of Postgre, so I'm wondering if it includes Rails bindings?
Thanks.
回答1:
Just upgraded my machine (which had Rails installed) to Lion, and tried this,
macbook:expenses Snips$ rails server
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.
So, I guess the answer is no :-(
回答2:
BitNami Rubystack will work and provide you with a out-of-the-box Rails environment with MySQL on OS X (and a bunch of preconfigured, commonly used third-party libraries and apps). Disclaimer, I am one of the developers of RubyStack. It is distributed under the Apache 2.0 open source license
回答3:
I've run into the same issue. I'm not sure which is the default with Lion but I found that
/Library/Ruby/1.8/bin/rails
does the trick. Using sudo I moved the /usr/bin/rails to /usr/bin/rails.bak and symlinked to the other rails. That seems to work.
Interestingly, RubyMine found the correct rails command to use
来源:https://stackoverflow.com/questions/6765098/is-rails-still-included-by-default-in-a-clean-installation-of-mac-os-x-10-7-aka