简体   繁体   中英

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 Rails 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:-(

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM