I am about as excited as a wolverine caught in a beaver trap about writing this post.
But, I have to test some stuff out for Fan Profiles, so here we go. I'm going through the steps as I write, so, I guess this is live blogging and anything can happen on a live blog.
Installing Ruby and Ruby Utilities
- Get Ruby Installer
- Verify that everything was installed:
C:\> ruby -v
C:\> gem -v
Ruby should be 1.8.6 and gem should be 1.0.1 or greater
Installing MySQL
- Download and install MySQL 5. It's an older version because the newer installers have bugs with Vista....still
- *Some Vista hackery from Building Web Apps:
- *First, go to the Start Menu, select Control Panel, and then click on User Accounts and Family Safety
- *Click on the User Accounts link to open your account’s setting dialog:
- *Click on the Turn User Account Control on or off link: Uncheck the box. DO NOT RESTART YET.
- *Open Control Panel again, and select the Allow a program through Windows Firewall option of the Security group.
- *Press the Add port... button, and enter MySQL in the “Name:” field and 3306 in the “Port number:” field. Leave the protocol as “TCP”.
- Double-click the community edition (open source) Windows Essentials MySQL to run the MySQL installer. The typical option is fine.
- Make sure the check box is checked to configure MySQL and click "Finish"
- OK, that did nothing for me. The wizard just exited.
- Oh, NOW restart your computer. (Be back in a few)
- OK now run the installer and REMOVE MySQL
- Now run it again, and install the stupid thing
- You should now be able to configure it
- Select Detailed Configuration
- Select "Developer Machine"
- Select "Multifunctional Database"
- Select "Decision Support"
- Leave "Enable TCP/IP Networking" and "Enable Strict Mode" checked
- Check "Best Support for Multilingualism"
- Check "Install as Windows Service" and "Include Bin Directory in Windows PATH"
- Give root a password: I used "root". I mean it's a developer's box. Don't be a security freak. It's unbecoming.
Rails and other gems
-
gem install rails --include-dependencies -y --no-rdoc --no-ri
-
gem install capistrano --include-dependencies -y --no-rdoc --no-ri
-
gem install mongrel --include-dependencies -y --no-rdoc --no-ri
-
gem install mongrel_cluster --include-dependencies -y --no-rdoc --no-ri
-
gem install mysql --include-dependencies -y --no-rdoc --no-ri
RMagick (GASP!!!!!)
- Download the zipped binary gem: Download
- Unzip it
- Run the ImagicMagick Installer, and keep all the default options
- cd into the unzipped directory from the command prompt
-
gem install rmagick --local --include-dependencies -y --no-rdoc --no-ri
- Restart your computer
Our IDE: Aptana
- Download and install Aptana Studio: Download
- Radrails: Click "Install" from the Aptana Start page that opens up by default and just keep checking and clicking next.
- Subclipse: Help > Software Updates > Find and Install > Search for new features to install > Select Subclipse and then keep checking and hitting next till it's installed.
Well, that wasn't as painful as I thought it would be, but I still feel like I have to go take a shower.
Or go code up something on my MacBook Pro. Nothing beats Rails development on a MacBook Pro.
UPDATE: Apparently this will work for Windows XP. The "*" parts are Vista only.