简体   繁体   中英

Start doing Rails 3 and JRails 3 development on OS X 10.6

I have OS X 10.6 (Snow Leopard) that is already coming loaded with Rails 2.
Rails now is at version 3 and I'm about to have Rails and JRails (JRuby on Rails) development.

I don't want to mess things, what should I do? How to upgrade to Rails 3? Should I use RVM (Ruby Version Manager)? Should I install JRuby via Homebrew?

I'd definitely go for RVM, it's the most painless way to set up different Ruby/Rails combinations on the same host. Especially with a comparatively young project like JRuby it was and sometime still is to effortlessly track HEAD next to the stable release.

Edit according to comment: RVM has excellent documentation, I'm not gonna repeat that. Here are some pointers:

RVM is the right way to do that. I can't live without it. You can also use a separate package manager like homebrew or macports to install libraries and dependencies for gems which need to be compiled.

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