JSON problem while installing rails

Hello all.

I try to install ruby on rails and I am litle stuck now because of
following error:


Can someone help me?

I using Windows 7 Ultimate, Ruby 1.9.2-p180 and RubyGems 1.8.11.

What I did before run: gem install rails?

1. installing ruby through ruby installer
2. C:\Users\h4cky\Downloads\rubygems-1.8.10>ruby setup.rb
3. C:\Users\h4cky\Downloads\rubygems-1.8.10>gem update --system
4. D:\devKit>ruby dk.rb init
5. D:\devKit>ruby dk.rb review
6. D:\devKit>ruby dk.rb install

The Content of error log is: http://pastebin.com/GPrR2bGu

Thanks in advance.

Ivelin Georgiev.

Path with spaces, that is the issue.


When you install Ruby using either RubyInstaller or RailsInstaller, it
warns you about path with spaces (above the field you enter the path
for installation).

Install outside a path with spaces and things will work.

Thank you for the answer - It Works now,

but i have other problem :

Unless you're using "gem server" to look at ActiveSupport
documentation you can install gems with --no-ri --no-rdoc options.

You should update to latest rdoc gem so solve this encoding issue.

Last but no least, try to use a console codepage that plays nicely
with UTF-8, seems IBM866 is your current codepage, please change it to


chcp 1251

At the command prompt before doing anything.

If you want to make a permanent change, see here:


Interesting is after running again - gem install rails

Everything was okay without error or warning.

But i do what you say.

Thank you very much!