# Problems with RMagick libraries

**URL:** <https://www.ruby-forum.com/t/problems-with-rmagick-libraries/104056>\
**Category:** Rails\
**Created:** [May 13, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/problems-with-rmagick-libraries/104056 "2007-05-13T20:04:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skyploom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d9b06d/32.png) [@skyploom](https://www.ruby-forum.com/u/skyploom)\
**Post date:** [May 13, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/problems-with-rmagick-libraries/104056/1 "2007-05-13T20:04:11Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![skyploom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d9b06d/32.png) [@skyploom](https://www.ruby-forum.com/u/skyploom)\
**Post date:** [May 19, 2007, 6:11am UTC](https://www.ruby-forum.com/t/problems-with-rmagick-libraries/104056/2 "2007-05-19T06:11:54Z")

</div>

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

SkyPlooM escreveu:
