Install DevKit on Windows 7 (64-bit)

Hey all

Finally got some time to update the blog. Recently I was configuring a rails app on windows 7 machine (ah! I know now no one uses windows for development but it was a requirement šŸ™ ) and I had to install json gem.

As soon as I did gem install json I got a weird error.

ERROR: Error installing json:
The ‘json’ native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit from ‘http://rubyinstaller.org/downloads’ and follow the instructions at ‘http://github.com/oneclick/rubyinstaller/wiki/Development-Kit’

Then I went and downloaded DevKit-4.5.0-20100819-1536-sfx.exe. Extracted it to C:\DevKit. And then from the command prompt I executed the following commands.

ruby dk.rb init

The command above will create a config.yml file where you need to verify where you ruby is installed and set it accordingly if there is any change.

ruby dk.rb review

The command above will show you the path where its pointing to.

ruby dk.rb install

The command above will install devkit.

Thats all!! Now again try gem install json and woo it works!!

Hope this helps.

Thanks

Be Sociable, Share!

Leave a Reply

Your email address will not be published. Required fields are marked *