Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > rmagick problem on Ubuntu

Reply
Thread Tools

rmagick problem on Ubuntu

 
 
Damjan Rems
Guest
Posts: n/a
 
      03-18-2008

I had installed rmagick gem on ubuntu 7.10. I have also compiled
imagemagick from sources becouse rmagick needs > 6.3. version of
imagemagick. Mine is now 6.3.9.

At the end everything went fine until I tried to run test program. I got
this error.

/usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so:
libMagickWand.so.1: cannot open shared object file: No such file or
directory - /usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so
(LoadError)
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick.rb:11
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
from /usr/lib/ruby/gems/1.8/gems/gruff-0.3.1/lib/gruff/base.rb:2
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /usr/lib/ruby/gems/1.8/gems/gruff-0.3.1/lib/gruff.rb:24
from /usr/lib/ruby/gems/1.8/gems/gruff-0.3.1/lib/gruff.rb:5:in
`each'
from /usr/lib/ruby/gems/1.8/gems/gruff-0.3.1/lib/gruff.rb:5
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
from testGruff.rb:6


As I understand RMagick2.so is unable to load libMagickWand.so.1 which
only points to libMagickWand.so. I have tried all kind of options
including copying libMagickWand.so from /usr/local/lib to
/usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib. But nothing helps.

What have I done wrong?


by
TheR
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Tim Hunter
Guest
Posts: n/a
 
      03-18-2008
Damjan Rems wrote:
> As I understand RMagick2.so is unable to load libMagickWand.so.1 which
> only points to libMagickWand.so. I have tried all kind of options
> including copying libMagickWand.so from /usr/local/lib to
> /usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib. But nothing helps.


Ubuntu doesn't look in the gems path for libMagickWand.so. It only looks
in its own load path, so copying libMagickWand.so there won't help. You
have to tell Ubuntu where to search for libMagickWand.so. See if this
tip helps: http://rmagick.rubyforge.org/install-faq.html#loaderror.

If that doesn't work, post a question on the RMagick Help forum on
RubyForge and I'll follow up when I get home.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Damjan Rems
Guest
Posts: n/a
 
      03-18-2008
Tim Hunter wrote:
> Damjan Rems wrote:
>> As I understand RMagick2.so is unable to load libMagickWand.so.1 which
>> only points to libMagickWand.so. I have tried all kind of options
>> including copying libMagickWand.so from /usr/local/lib to
>> /usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib. But nothing helps.

>
> Ubuntu doesn't look in the gems path for libMagickWand.so. It only looks
> in its own load path, so copying libMagickWand.so there won't help. You
> have to tell Ubuntu where to search for libMagickWand.so. See if this
> tip helps: http://rmagick.rubyforge.org/install-faq.html#loaderror.
>
> If that doesn't work, post a question on the RMagick Help forum on
> RubyForge and I'll follow up when I get home.


Yep. It helps. Thanks a lot.

by
TheR

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between gem install rmagick and port rb-rmagick Pito Salas Ruby 1 04-24-2009 09:29 PM
RMagick error: " no such file to load -- RMagick" jeljer te Wies Ruby 2 03-23-2009 12:23 AM
rmagick 2.5.2 install in ubuntu Walter Joseph Ruby 3 08-17-2008 04:04 PM
Learn python packaging for Ubuntu and Debian in the Ubuntu Open Week SPE - Stani's Python Editor Python 1 04-29-2008 11:51 AM



Advertisments