Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[ANN] Win32 gem for RMagick 1.9.1

23 views
Skip to first unread message

Timothy Hunter

unread,
Sep 10, 2005, 9:00:34 AM9/10/05
to
Hot on the heels of the latest RMagick update, Kaspar Schiess has
uploaded a Win32 gem for RMagick 1.9.1. This gem includes ImageMagick
6.2.3 as well as brand-new support for the JPEG2000 format. Thanks, Kaspar!

To install the gem, download the .zip file to a temp directory, unzip
it, and follow the instructions in the README file.

RMagick is an interface to the ImageMagick (www.imagemagick.org) and
GraphicsMagick (www.graphicsmagick.org) image processing libraries.
RMagick supports more than 90 image formats, including GIF, JPEG, and
PNG. RMagick now includes RVG, a 2D drawing API based on SVG. The
package includes comprehensive HTML documentation.

Timothy Hunter

unread,
Sep 10, 2005, 9:03:04 AM9/10/05
to
Timothy Hunter wrote:
> Hot on the heels of the latest RMagick update, Kaspar Schiess has
> uploaded a Win32 gem for RMagick 1.9.1. This gem includes ImageMagick
> 6.2.3 as well as brand-new support for the JPEG2000 format. Thanks, Kaspar!

Oop, forgot.

The gem is available here:
http://rubyforge.org/frs/download.php/5998/RMagick-1.9.1-IM-6.2.3-win32.zip

Visit the RMagick home page at: http://rmagick.rubyforge.org

Nicholas Van Weerdenburg

unread,
Sep 11, 2005, 5:14:28 PM9/11/05
to

I'm getting an error trying to install the gem:

D:\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


D:\RMagick-1.9.1-IM-6.2.3-win32>ruby -v
ruby 1.8.2 (2004-12-25) [i386-mswin32]

D:\RMagick-1.9.1-IM-6.2.3-win32>gem --version
0.8.11

Ruby is installed via the latest one-click installer.

Thanks,
Nick


Kaspar Schiess

unread,
Sep 13, 2005, 6:19:30 AM9/13/05
to
Hello Nick,

> D:\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

I can reproduce that on some machines, although not on my testing machines.
This is an error that somehow floats up trough the zlib library into
rubygems, there is even code in rubygems to avoid that error, but it seems
that it has hit again. (search for the words 'buffer' or 'error' in
package.rb from rubygems)

I cannot really say how to fix this, I tried for a whole afternoon to no
success. I guess replacing zlib.so would be an alternative, but I can't see
where to download one. You could also try to enable the error avoidance
branch in the above piece of code, maybe that solves the problem ?

If things get really tough, I can whip together a manual install, although
that again would be a lot of work.

Tell me what works for you
kaspar

--
code manufacture & ruby lab at http://www.tua.ch/ruby

Nicholas Van Weerdenburg

unread,
Sep 13, 2005, 1:06:47 PM9/13/05
to
Hi Kaspar,

Thanks for the response.

I tried running again with --debug, and got the following:

D:\RMagick-1.9.1-IM-6.2.3-win32>gem install
RMagick-win32-1.9.1-mswin32.gem --debug
Exception `Errno::ENOENT' at
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:12 - No such
file or directory - D:\
User Profiles\nvanweerdenburg.PTCNET/.gemrc


Attempting local installation of 'RMagick-win32-1.9.1-mswin32.gem'

Exception `Zlib::BufError' at
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:348 - buffer error


ERROR: Error installing gem RMagick-win32-1.9.1-mswin32.gem[.gem]: buffer error

putting some outputs into rubygems/package.rb:
@read=2682880, @size=8780608
len=2048
max_read=2048
@read=2684928, @size=8780608
len=2048
max_read=2048
@read=2686976, @size=8780608
len=2048
max_read=2048
@read=2689024, @size=8780608
len=2048
max_read=2048
@read=2691072, @size=8780608
len=2048
max_read=2048
Exception `Zlib::BufError' at c:/ruby/lib/ruby/site_ruby/1.8/rubygems/package.rb
:352 - buffer error


ERROR: Error installing gem RMagick-win32-1.9.1-mswin32.gem[.gem]: buffer error

It looks like it was going okay until about a 1/3 of the way through
the current entry. A bunch run sucessfully before this one.

I'm rather stuck now. What's the manual install effort? Any hints or tips?

Thanks,
Nick

Nicholas Van Weerdenburg

unread,
Sep 13, 2005, 1:10:12 PM9/13/05
to
On 9/13/05, Kaspar Schiess <eu...@space.ch> wrote:

Hi Kaspar,

Thanks to your tip,

I changed
if Zlib::ZLIB_VERSION < '1.2.1'

to

if Zlib::ZLIB_VERSION <= '1.2.1'

in package.rb and it installed ( I think ).

Thanks,
Nick


Nicholas Van Weerdenburg

unread,
Sep 13, 2005, 1:12:12 PM9/13/05
to

Now if I do "irb" and require "rmagick" I get an error dialog:

ruby.exe- Unable to Locate Component
The application has failed to start because libbz2.dll was not found.
Re-installing the application may fix this problem.

Any thoughts here?

Thanks,
Nick
--
Nicholas Van Weerdenburg


rma...@gmail.com

unread,
Sep 13, 2005, 2:53:36 PM9/13/05
to
Nick, did you run postinstall.rb?

Nicholas Van Weerdenburg

unread,
Sep 13, 2005, 4:05:17 PM9/13/05
to
On 9/13/05, rma...@gmail.com <rma...@gmail.com> wrote:
> Nick, did you run postinstall.rb?
>
>
>

Thanks. I just realized that an ran it.

Now I get the following:
..warnings snipped...
c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.1-mswin32/lib/rmagick.rb:158:
warning: already initialized constant STR
ETCH_TYPE_NAMES
c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.1-mswin32/lib/rmagick.rb:164:
warning: already initialized constant STY
LE_TYPE_NAMES
NameError: undefined method `assoc' for class `Magick::ImageList'
from c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.1-mswin32/lib/rmagick.rb:1002:in
`undef_method'
from c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.1-mswin32/lib/rmagick.rb:1002
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'

Timothy Hunter

unread,
Sep 13, 2005, 5:28:53 PM9/13/05
to

These are the kind of messages that I'd expect if you somehow loaded
RMagick.rb twice. Is there any way that could be happening?

Nicholas Van Weerdenburg

unread,
Sep 13, 2005, 5:58:39 PM9/13/05
to

It was loading twice, as I noticed with some debug statements.

Turns out I was using require "rmagick" rather then require "RMagick"
which seems to work properly.

Thanks,
Nick


senor....@gmail.com

unread,
Sep 14, 2005, 6:52:08 PM9/14/05
to
Yeah - I get that exact same error. Just re-installed my computer.
Everything fresh. XP2, latest, Ruby, latest RubyGems ... nothing much
else on my machine ...

senor....@gmail.com

unread,
Sep 14, 2005, 6:54:20 PM9/14/05
to
I mean this error (sorry):

D:\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

Joerg Diekmann

Timothy Hunter

unread,
Sep 14, 2005, 7:05:42 PM9/14/05
to
Did you see Kaspar's suggested workaround earlier in this thread?

Change
if Zlib::ZLIB_VERSION < '1.2.1'

to

if Zlib::ZLIB_VERSION <= '1.2.1'

in package.rb.

Kaspar Schiess

unread,
Sep 15, 2005, 5:30:55 AM9/15/05
to
> Did you see Kaspar's suggested workaround earlier in this thread?
>
> Change
> if Zlib::ZLIB_VERSION < '1.2.1'
>
> to
>
> if Zlib::ZLIB_VERSION <= '1.2.1'
>
> in package.rb.

Hi Timothy,

Are you on the rubygems list ? I would like for someone to crosspost this
bug there. I guess the bug is in zlib, but Rubygems could work around it.

The zlib bug seems to have surfaced at one point, then have been fixed,
but not completely as it seems.

I am hesitant as to just changing that gem around and tweaking the bytes
to make things work, since then the bug will just dive once more. Very
possible it has something of a Heisenbug, so making it reproducable on
Windows machines sounds like something good...

Anyone of the important people reacting to this ? Should probably repost
under a fresh subject. Though I hate going around sticking fingers at
people yelling 'you got a BUG, BUUUUG' ;)

what do you think ?

kaspar

0 new messages