sdruby  

[SDRuby] Re: Passenger, Ruby, RMagick and Dreamhost

[EMAIL PROTECTED]
Tue, 26 Aug 2008 21:55:39 -0700

Finally managed to get it working (replaced config.gem 'rmagick' with
a require 'RMagick' initializer...

Only now passenger won't load the newer version of ImageMagick... =/

On Aug 26, 9:07 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Ok, I've gotten somewhere!
>
> While trying to open script/console, it would complain about rubygems.
> So I fixed that...
>
> Now it is not being able to find the ImageMagick libraries...
>
> [oedipus]$ ruby script/console production
> Loading production environment (Rails 2.1.0)
> /home/felipekk/.gems/gems/rmagick-2.5.2/lib/RMagick2.so:
> libMagickCore.so.1: cannot open shared object file: No such file or
> directory - /home/felipekk/.gems/gems/rmagick-2.5.2/lib/RMagick2.so
> (LoadError)
>
> The libraries are located under /home/felipekk/local/lib... if only I
> could tell RMagick to look there...
>
> On Aug 26, 8:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Ok...
>
> > after getting FlexImage to do what I needed on my local host (Vista
> > x64, using RMagick for win32) I decided to test on my current hosting
> > provider, DreamHost.
>
> > The problem with DreamHost is that their "default" packages are all
> > outdated. Ruby 1.8.5, ImageMagick 6.2, RMagick 1.15!!!!
>
> > The good thing is that I can install any newer version of the packages
> > under my user... I've got the newest ImageMagick and RMagick
> > installed, as well as Ruby 1.8.6. The problem is... I'm not sure
> > passenger is loading the correct RMagick (or if RMagick is using the
> > correct ImageMagick), because it is crashing when trying to work with
> > it...
>
> > I've added config.gem "RMagick", :version => ">= 2.5" to my
> > environment.rb, but whenever I run rake gems I get:
>
> > [ ] RMagick >= 2.5
>
> > I = Installed
> > F = Frozen
>
> > And for completeness, here is the error I get on production.log:
>
> > ActionView::TemplateError (/home/.../vendor/plugins/fleximage/lib/
> > fleximage/operator/text.rb:83:in `operate': undefined method `shadow'
> > for   1024x768 DirectClass 16-bit:Magick::Image) in images/
> > show.jpg.flexi:
>
> > Any ideas on what I can do to try and troubleshoot this?
>
> > Any help is greatly appreciated...
>
>
--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
sdruby@googlegroups.com
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---