Rob, (Adding the IronRuby Mailing List so everyone has context)
You need to "require 'rubygems'" first before using any installed gems. That being said, IronRuby will not be able to use any native gems built for Ruby 1.8.6 (like RMagick), since they are specifically built for Ruby's C API, and IronRuby has a different one. JRuby has the same issue, as well as every other Ruby implementation. *We need a port RMagick to IronRuby *(anyone interested?), depending direcly on the .NET System.Windows.Drawing APIs. This will mean you just need the ironruby-rmagick.gem, and it will just work (no more installing ImageMagick everywhere). How much do you use RMagick for? Until the port is ready, you could rewrite that small portion to detect what implementation it's running on, and use the .NET APIs directly. I've already written a resizer.rb for RailsConf which resized images: http://github.com/jschementi/railsconf09/tree/master/6-resizer Also, the ironruby-rack IIS implementation isn't perfect, so you might find issues with it running Rails; just let me know if you do and I'll get you patches. We test it running pure-Rack apps, as well as Sinatra apps, and Rails is next, but I haven't gotten around to doing it. ~Jimmy On Mon, Aug 3, 2009 at 4:08 PM, Rob Becker <[email protected]> wrote: > Hey Jimmy, > First, thanks for your hard work on IronRuby. I'm totally excited to be > able to run rails apps on IIS. > I'm trying to move an app to ironruby and rack on iis but my app uses > RMagick / ImageMagick. I've tried the rmagick gem (which fails trying to > build native extensions) and I've tried the windows specific gem for RMagick > but it doesn't seem to work. It installs fine but doesn't work when I try > to use it. Any words of wisdom? > > Here's what happens: > > J:\gems>igem install --local rmagick-2.10.0-x86-mswin32.gem > Successfully installed rmagick-2.10.0-x86-mswin32 > 1 gem installed > > J:\gems>igem list --local > > *** LOCAL GEMS *** > > actionmailer (2.1.0) > actionpack (2.1.0) > activerecord (2.1.0) > activeresource (2.1.0) > activesupport (2.1.0) > cgi_multipart_eof_fix (2.5.0) > fastercsv (1.5.0) > gem_plugin (0.2.3) > graticule (0.2.10) > ldap (0.9.7) > mongrel (1.1.5) > mongrel_service (0.3.4) > rack (1.0.0) > rails (2.1.0) > rake (0.8.7) > rmagick (2.10.0) > ruby-ole (1.2.10) > rubygems-update (1.3.5) > spreadsheet (0.6.4) > win32-service (0.5.2) > > J:\gems>ir > IronRuby 0.9.0.0 on .NET 2.0.50727.3082 > Copyright (c) Microsoft Corporation. All rights reserved. > > >>> require 'rmagick' > :0:in `require': no such file to load -- rmagick (LoadError) > from :0 > > >>> require 'RMagick' > :0:in `require': no such file to load -- RMagick (LoadError) > from :0 > > > > ------------------------------ > > > > Rob Becker | Software Developer > *Rocky Mountain Elk Foundation** > 406-523-0252** > [email protected] | www.rmef.org* > > > > This message is for the named person's use only. It may contain > confidential, proprietary or legally privileged information. No > confidentiality or privilege is waived or lost by any errant transmission. > If you receive this message in error, please immediately delete it and all > copies of it from your system, destroy any copies of it and notify the > sender by reply e-mail. You must not, directly or indirectly, use, disclose, > distribute, print, or copy any part of this message or any attachments if > you are not the intended recipient. The Rocky Mountain Elk Foundation > reserves the right to monitor all e-mail communications through its network. > >
_______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
