Is Rails still included by default in a clean installation of Mac OS X 10.7 (aka Lion)?
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 开发者_如何学PythonRails bindings?
Thanks.
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 :-(
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
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
精彩评论