So I wanted to get up and running with a development system for Ruby on Rails, on my shiny freshly installed Windows 7 machine (so, no development stuff on it as of yet whatsoever). However, the recent Ruby update to 1.9.1 brought such big changes that apparently, many libraries don’t work with it anymore – so the installer of choice, the One-Click Ruby Installer, is (for now) stuck at supporting Ruby 1.8.6 only.
Update 2009-06-23 15:12: There seems to be a way to make the one-click installer build Ruby 1.9.1, guess I’ll have to try that out.
The One-Click Ruby Installer is not dead, and there’s even a design vote for the 1.9.1 website. But since I want my development environment bleeding edge and I want it now, I’ll just have to make do with a manual install. Since I haven’t found a tutorial detailing the steps for that, I’ll just do it from scratch and take you along the ride. Good tutorials I did find are:
- The Best Environment for Rails on Windows, including a rant against IDEs
- Installing Rails on Windows, including a guide for setting up MySQL
- Time For A Grown-Up Server, for adding Mongrel and Apache
So, what do we need, for a full-blown environment?
- Ruby 1.9.1 – obviously, can’t have Ruby without Ruby
- Ruby Gems 1.3.4 – since gems are the Ruby way of distributing anything
- Rails 2.3 – obviously, can’t have Ruby on Rails without Rails
- MySQL 5.1 – the database we’ll use, although others would work as well
- Mongrel 1.1.5 – reliable and secure webserver
That’s it for the start, but for additional tool goodness (and in order to have some of the above run properly in the first place) we need more:
- Git 220.127.116.11 – the version control used by rubyists
- Subversion 1.6.3 – very widespread version control (and I refuse to add CVS to this list)
- MinGW and MSYS – to make sure gems can be installed and compiled if necessary
- Rake 0.8.3 – the ruby version of make
- Ruby-Debug 0.10.3 – who doesn’t like debuggers
- ImageMagick 6.5.3 – can be used by Rails
- Web Developer 1.1.6 – for CSS and HTML stuff
- MySQL Control Center 0.9.4 – or an alternative that can admin MySQL databases
- Apache 2.2.11 – front-end webserver for load balancing and whatnot
An intimidating list at first sight, but I did try to get everything I might need in there. The hard part then will be making all of them talk together. Concerning the actual development environment, I am as of yet undecided between gVim and an IDE like Aptana or RubyMine. Both have upsides and downsides.
So, is this list complete, do you see anything I’ve missed? Or do I have anything on it that you think is irrelevant? Let me know in the comments!
So much for talking the talk – the next step will be walking the walk, and I’ll make sure to give you a full tutorial afterwards.
Update 2009-06-24 16:05: Yep, Ruby on Rails is installed. Here is how I did it.