Problems with RMagick libraries

Hi, I’m trying to use File_colum plugin
(rails/…/plugin/trunk)
with RMagick.

When I use in the model:
class Usuario < ActiveRecord::Base
file_column :image
…rest of the code…
end

There’s no problem, images are uploaded and all is working ok. The
problem comes when I try to use:

class Usuario < ActiveRecord::Base
file_column :image, :magick => { :geometry => “640x480>” }
…rest of the code…
end

I receive this error:

/usr/lib/ruby/gems/1.8/gems/rmagick-1.15.4/lib/RMagick.so: cannot open
shared object file: No such file or directory -
/usr/lib/ruby/gems/1.8/gems/rmagick-1.15.4/lib/RMagick.so
RAILS_ROOT: …/config/…

This error occurred while loading the following files:
RMagick
RMagick.so

I try adding require ‘RMagick’ to the models, but it still not working.
I checked in my directory
/usr/lib/ruby/gems/1.8/gems/rmagick-1.15.4/lib/RMagick.so and it exists.

I can’t change the ld.so.conf file because the admin server don’t want
to give me access and I can’t set LD_…_PATH= /usr/lib for the same
reason.
The solution have to be something in my rails directory, like put the
libraries RMagick.so and RMagick in, for example, rails/plugin and call
it from environment.rb… but I no have idea about how to do.

Some ideas about this problem? thanks!

Hey, I have the same problem.
Have you found any solution?

SkyPlooM escreveu: