RMagick and FastCGI on Windows

I’m having trouble getting RMagick to work on my Apache/FastCGI setup.
If I top Apache and start WEBrick on the exact same app/dirs, it works
fine.

I installed RMagick following the instructions here:
http://rmagick.rubyforge.org/install-faq.html#win

That gives me:
C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.9.2-mswin32\lib
C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.9.2-mswin32\config
etc…

irb> require ‘RMagick’ # returns true

Running WEBrick, RMagick works fine in my apps. However, this is
misleading:
<%= require ‘RMagick’ %> # returns false. But it works, so that is
misleading.

For prod, I am running Apache2 and FastCGI (yes, I got it working.)
RMagick is not working however. The best lead I have is from here:
(http://dema.ruby.com.br/articles/2005/08/23/taming-fastcgi-apache2-on-windows)

It says to try this:
FastCgiConfig -maxClassProcesses 1 -maxProcesses 1 -minProcesses 1
-processSlack 1 -initial-env
PATH=“c:/ruby/bin;c:/windows/system32;c:/windows;”
-initial-env RUBYOPT=rubygems
-initial-env
MAGICK_CONFIGURE_PATH=“c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib;”

No luck.

Can anyone give me any ideas to try or help me troubleshoot? I’m not
sure what to try next. Do I need to put RMagick.so someplace special? Do
something else? I’ve tried everything I can think of. Is there some way
I can get more details as to why RMagick is not working? I’m not seeing
any errors in my logs.

Much love to anyone who can help. Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs