Is Rails still included by default in a clean installation of Mac OS X 10.7 (aka Lion)?

房东的猫 提交于 2019-12-24 09:55:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!