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/.