Zlib::BufError on Windows Server 2003

Im trying to set Redmine to Windows Server 2003R2 SP2.
I set Ruby, Gems, but when Im installing rake or rails or other gem I
get error

ERROR: While executing gem … (Zlib::BufError)
buffer error

Command “gem update --system” doesn’t help.

I was trying Ruby 1.8.6 and 1.8.7 with the same result.

How can I solve this problem with Zlib ??

PS:
I logged to Server as Administrator.
On Windows XP computer ruby works fine.

St Kos wrote:

Im trying to set Redmine to Windows Server 2003R2 SP2.
I set Ruby, Gems, but when Im installing rake or rails or other gem I
get error

ERROR: While executing gem … (Zlib::BufError)
buffer error

Command “gem update --system” doesn’t help.

I was trying Ruby 1.8.6 and 1.8.7 with the same result.

How can I solve this problem with Zlib ??

PS:
I logged to Server as Administrator.
On Windows XP computer ruby works fine.

gem i rake -include-dependeces
This command helped to solve that error.

St Kos wrote:

Im trying to set Redmine to Windows Server 2003R2 SP2.
I set Ruby, Gems, but when Im installing rake or rails or other gem I
get error

ERROR: While executing gem … (Zlib::BufError)
buffer error

You may be able to overcome this by using mingw ruby [1] or by
installing pure ruby zlib.
GL.
-r
[1] rubyinstaller.org