Problems with RMagick libraries

Hi, I’m trying to use File_colum plugin
with RMagick.

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

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…

I receive this error:

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

This error occurred while loading the following files:

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/ and it exists.

I can’t change the file because the admin server don’t want
to give me access and I can’t set LD_…_PATH= /usr/lib for the same
The solution have to be something in my rails directory, like put the
libraries 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:

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