(1) For this to work properly, first you need to install the DevKit. Just download the executable from RubyInstaller and run it. For rails 2 choose 3.4.5 version. If it’s installed on C:DevKit, for example, then follow the next steps: cd C:DevKit ruby dk.rb init ruby dk.rb install gem install rdiscount –platform=ruby (2) Install the […]
Tag Archives: windows
Zlib buffer error on gem install
if gem update –system not works and rename ruby/bin/zlib1.dll to zlib.dll not helps try: Open file RUBY_DIRlibrubysite_ruby1.8rubygems.rb And replace existed def self.gunzip(data) by this: def self.gunzip(data) require ‘stringio’ require ‘zlib’ data = StringIO.new data # Zlib::GzipReader.new(data).read data.read(10) # skip the gzip header zis = Zlib::Inflate.new(-Zlib::MAX_WBITS) is = StringIO.new(zis.inflate(data.read)) end