Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Troy Heninger
RE: Problem installing RMagick under Windows [ reply ]  
2005-09-22 11:40
Thank you! Thank you! Thank you! That solved my problem too. The question is, should I leave the mods in or not?

By: Will Wyatt
RE: Problem installing RMagick under Windows [ reply ]  
2005-09-16 09:18
FWIW, Kaspar's solution worked for me. I searched for 'buffer' in 'c:\ruby\lib\ruby\site_ruby\1.8\rubygems\package.rb' and changed

def zipped_stream(entry)
if Zlib::ZLIB_VERSION < '1.2.1'
zis = Zlib::GzipReader.new entry
dis = zis.read
is = StringIO.new(dis)
else
is = Zlib::GzipReader.new entry
end
ensure
zis.finish if zis
end

to

def zipped_stream(entry)
# if Zlib::ZLIB_VERSION < '1.2.1'
zis = Zlib::GzipReader.new entry
dis = zis.read
is = StringIO.new(dis)
# else
# is = Zlib::GzipReader.new entry
# end
ensure
zis.finish if zis
end

and RMagick installed successfully.

By: Joerg Diekmann
RE: Problem installing RMagick under Windows [ reply ]  
2005-09-15 06:41
Hi Kaspar,

I have exactly the same problem in terms of there being a buffer error on the install of the gem. If this helps, this is a newly installed XP machine, with nothing on it except latest Ruby, latest RubyGems, and latest Rails.

I have also looked into the rubgygems sources directory (C:\ruby\lib\ruby\gems\1.8\gems\sources-0.0.1), and inside it is only one folder called "lib" which contains a single file called "sources.rb" (this sounds like the description of some elaborate james-bond like treasure hunt).

In other words, no package.rb file.

I have found a package.rb file in the following directory "C:\ruby\lib\ruby\site_ruby\1.8\rubygems" ... is this the one I should change?

Just giving you all this information in case it might be of use to you or to whoever wants to figure out what the problem is.

Ok later
Joerg

By: Kaspar Schiess
RE: Problem installing RMagick under Windows [ reply ]  
2005-09-15 05:33
Hello

Looks as if this is a problem in the distributed zlib.so. I can't offer a real fix, but I can help you with installing that gem:

in the rubygems sources directory, locate the file
package.rb

Look for the word 'buffer', change the code below to always assume that Zlib::ZLIB_VERSION is < 1.2.1. People have confirmed that the special case makes things work.

best regards,
kaspar

By: Tim Hunter
RE: Problem installing RMagick under Windows XP [ reply ]  
2005-09-13 17:24
I see Kaspar is helping somebody with the same problem in a thread on comp.lang.ruby. Check out the thread with the subject "Win32 gem for RMagick 1.9.1", or contact Kaspar directly.

By: Yitzhak Bar Geva
Problem installing RMagick under Windows XP [ reply ]  
2005-09-13 10:54
For the life of me, I can't install RMagick under WinXP.
ImageMagick installed OK and passed the installation test. Ruby installed OK. gem installed OK and I used it to remotely make rake. That went OK.
Here's what I get:
C:\ybgtemp\RMagick-1.9.1-IM-6.2.3-win32>gem install RMagick-win32-1.9.1-mswin32.
gem
Attempting local installation of 'RMagick-win32-1.9.1-mswin32.gem'
ERROR: Error installing gem RMagick-win32-1.9.1-mswin32.gem[.gem]: buffer error

Any suggestions?
Yitzhak