rmagick problem on Ubuntu

Discussion in 'Ruby' started by Damjan Rems, Mar 18, 2008.

  1. Damjan Rems

    Damjan Rems Guest

    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/.
     
    Damjan Rems, Mar 18, 2008
    #1
    1. Advertising

  2. Damjan Rems

    Tim Hunter Guest

    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/.
     
    Tim Hunter, Mar 18, 2008
    #2
    1. Advertising

  3. Damjan Rems

    Damjan Rems Guest

    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/.
     
    Damjan Rems, Mar 18, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SPE - Stani's Python Editor
    Replies:
    1
    Views:
    465
    SPE - Stani's Python Editor
    Apr 29, 2008
  2. Ara.T.Howard

    RMagick jp2 problem

    Ara.T.Howard, May 19, 2004, in forum: Ruby
    Replies:
    8
    Views:
    148
    Tim Hunter
    May 20, 2004
  3. Roeland Moors

    rmagick problem?

    Roeland Moors, Sep 12, 2004, in forum: Ruby
    Replies:
    3
    Views:
    185
    Tim Hunter
    Sep 12, 2004
  4. Walter Joseph

    rmagick 2.5.2 install in ubuntu

    Walter Joseph, Aug 17, 2008, in forum: Ruby
    Replies:
    3
    Views:
    196
    Walter Joseph
    Aug 17, 2008
  5. Pito Salas
    Replies:
    1
    Views:
    148
    Tim Hunter
    Apr 24, 2009
Loading...

Share This Page