|
|
|
|
|
by losvedir
4717 days ago
|
|
Oh, boy. I've gotten our rails dev environment set up on a dozen different machines now and there's always a little problem here or there. One thing I can say right off the bat: I could never get it fully up and running on Windows, unfortunately. But we have had success on both OS X and Linux machines. The trick is to 1) install rbenv or rvm, 2) build the right version of ruby, 3) install the right gems, 4) make sure your PATH is set up properly. The rails consultancy thoughtbot has a script you can run to just magically set up a new laptop for rails development. I don't do this (too magical, and too little control), but I usually pull up the script[1] just to remind myself of what things I need to attend to and install. Feel free to hit me up at my email address in my profile if you're stumped on something. I've probably seen most issues by now... [1] https://raw.github.com/thoughtbot/laptop/master/linux |
|
Download the git installer and run it.
Install homebrew using their script.
brew install rbenv
brew install ruby-build
Once that is done you'll need to copy some stuff in your shell profile. It will tell you the two lines. Restart your shell.
Here's the first trick. You need openssl:
brew install open-ssl
(make sure "qmake" is now available or restart shell and see)
To see ruby versions: rbenv install -l
I installed 2.0.0-rc2: rbenv install 2.0.0-rc2
Almost there! Set it as your global ruby
rbenv global 2.0.0-rc2
Make sure this outputs the right ruby version now: ruby -v
Now install bundler and rails!
gem install bundler
gem install rails
I probably missed a step or two, but I just ran through that process and had a few bumps in the road as usual myself.