Can't install RMagick on Windows XP

R

rhubarb

I'm trying to install RMagick for the first time on XP.
I get the error Can't exec \bin\sh, which seems like it's trying a *nix
install.

I have gems 0.8.11 (had 0.8.10 but did an update --system this morning)
I have installed other gems successfully

Here's the full dump from my command prompt:

========================================

[c:\ruby\ruby182\lib\ruby\gems\1.8]gem install RMagick
Attempting local installation of 'RMagick'
Local gem file not found: RMagick*.gem
Attempting remote installation of 'RMagick'
Building native extensions. This could take a while...
configure:1: Can't exec \bin\sh (fatal)
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in
C:/ruby/ruby182/lib/ruby/gems/1.8/gems/rmagick-1.9.2 for inspection.
ruby configure install RMagick\n

Results logged to
C:/ruby/ruby182/lib/ruby/gems/1.8/gems/rmagick-1.9.2/gem_make.out

[c:\ruby\ruby182\lib\ruby\gems\1.8]

===========================================

Can anyone help me?
 
R

rhubarb

Okay, solved it myself by not using the normal remote gem install.
Instead, I went to the RMagick website and downloaded the binary gem
install for windows.
http://rubyforge.org/frs/?group_id=12&release_id=3031

I extracted the zip to a temp directory and followed the instructions
in README.html.

To summarize those instructions:
use gem install locally by specifying the gem file by cd'ing to the
extracted directory and typing:

gem install RMagick-win32-1.9.2-mswin32.gem

then run the postinstall command in that same directory:

ruby postinstall.rb

and that's it!
 
F

Florian Groß

rhubarb said:
gem install RMagick-win32-1.9.2-mswin32.gem

This step seems to cause buffer overflow errors on this game only
lately. This is using the one-click installer:

ruby 1.8.2 (2004-12-25) [i386-mswin32]
gem -v is 0.8.5

Any suggestions?
 
F

Florian Groß

Timothy said:
gem install RMagick-win32-1.9.2-mswin32.gem

This step seems to cause buffer overflow errors on this game only
lately. This is using the one-click installer:

ruby 1.8.2 (2004-12-25) [i386-mswin32]
gem -v is 0.8.5

Any suggestions?

There's a thread on the RMagick RubyForge Help forum about this. See
http://rubyforge.org/forum/forum.php?thread_id=3457&forum_id=33

Thank you. Will the problem be fixed in RubyGems or zlib.so in the
future? It seems a pity to have a great install process spoiled by this
kind of bug...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top