PDA

View Full Version : Rmagick Help


Akaii
September 13th, 2005, 10:21 PM
I can't seem to install Rmagick through gems...


C:\Documents and Settings\user\Desktop>gem install rmagick*
Attempting local installation of 'rmagick-1.9.1.gem'
Building native extensions. This could take a while...
configure:1: Can't exec \bin\sh (fatal)
ERROR: Error installing gem rmagick-1.9.1.gem[.gem]: ERROR: Failed to build gem
native extension.
Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.9.1
for inspection.
ruby configure install rmagick-1.9.1.gem rmagick-2.9.1.gem\n

Results logged to c:/ruby/lib/ruby/gems/1.8/gems/rmagick-1.9.1/gem_make.out

C:\Documents and Settings\user\Desktop>
What does this mean? What can I do? Help...

bluetechnx
September 14th, 2005, 12:54 AM
it looks like the gem is looking to execute an external shell in the unix/linux way to install the gem into a directory. That's what "cant exec \bin\sh" is trying to do (to my knowledge).

So in short the gem thinks your using Linux, when clearing your using Windows. Which is odd...instead of a local install, if you have access to the internet on that machine try:
gem install --remote rmagic*

The gem on the remote server might be newer or able to install properly...that's sorta all I can think of right now....

burntout
September 18th, 2005, 06:20 AM
If not that, install Cygwin (http://www.cygwin.com/).

rob
September 18th, 2005, 07:58 PM
The gem is trying to use the configure script, which won't work under Windows at all. Cygwin is a good option, or you can also try finding a pre-compiled version for Windows.

rmagick
November 13th, 2005, 07:56 PM
Sorry I didn't see this earlier, Akaii, but I don't get around these parts very often :-) There's a special RMagick gem for Windows. See the RMagick Installation FAQ (http://rmagick.rubyforge.org/install-faq.html) for more information. If you have any questions you can always reach me here (rmagick@rubyforge.org).

rob
November 14th, 2005, 02:27 PM
Honored by your presence, rmagick ! :)