Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 53831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:07:30+00:00 2026-05-10T17:07:30+00:00

Trying to install the RMagick gem is failing with an error about being unable

  • 0

Trying to install the RMagick gem is failing with an error about being unable to find ImageMagick libraries, even though I’m sure they are installed.

The pertinent output from gem install rmagick is:

checking for InitializeMagick() in -lMagick... no checking for InitializeMagick() in -lMagickCore... no checking for InitializeMagick() in -lMagick++... no Can't install RMagick 2.6.0. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.  *** extconf.rb failed *** 

And looking in mkmf.log reveals:

have_library: checking for InitializeMagick() in -lMagick... -------------------- no  '/usr/local/bin/gcc -o conftest -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -I/usr/local/include/ImageMagick  -I/usr/local/include/ImageMagick  conftest.c  -L. - L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -L/usr/local/lib -R/usr/local/lib -lfreetype -lz -L/usr/local/lib   -L/usr/local/lib -lMagickCore  -lruby-static - lMagick  -ldl -lcrypt -lm   -lc' ld: fatal: library -lMagick: not found ld: fatal: File processing errors. No output written to conftest 

This is on Solaris 10 x86 with ImageMagick version 6.4.3 and RMagick version 2.6.0

If I need to add something to LDFLAGS, its not clear to me what that would be. I installed ImageMagick from source and it should be in the usual places. ie,

# ls -l  /usr/local/lib/ | grep -i magick                       drwxr-xr-x  5 root root      512 Sep 24 23:09 ImageMagick-6.4.3/ -rw-r--r--  1 root root 10808764 Sep 25 02:09 libMagickCore.a -rwxr-xr-x  1 root root     1440 Sep 25 02:09 libMagickCore.la* -rw-r--r--  1 root root  2327072 Sep 25 02:09 libMagickWand.a -rwxr-xr-x  1 root root     1472 Sep 25 02:09 libMagickWand.la* 

ImageMagick-6.4.3/ contains nothing interesting and I can’t find any other files that I might be able to point gem install at.

Any advice would be much appreciated!! googling hasn’t been too helpful.

thanks –

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:07:30+00:00Added an answer on May 10, 2026 at 5:07 pm

    problem solved.

    RMagick was unable to find ImageMagick because I neglected to build the shared objects (there were no .so files installed as you can see from the ‘ls’ in the original question). The solution was to add --with-shared to my configure options.

    This however caused other problems. Most notably, make failing with ‘undefined symbol’ messages for libiconv. This was solved by setting CFLAGS to point to libiconv:

    export CFLAGS='-liconv' 

    Ultimately, my successful configure command was:

    ./configure --disable-static --with-modules --without-perl  --with-quantum-depth=8  --with-bzlib=no --with-libiconv 

    and after that, make, make install, and gem install rmagick all worked smoothly.

    thanks,

    R

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to install py-bcrypt on win7. Python is 64bit. First error unable to find
Trying to install mysql2 gem on ruby 1.9.2 and I get this error: Installing
When trying to install Imagemagick via Macports, I keep getting an error when it
Trying to install pear package and keep getting this strange error. Can you shed
I'm trying install pycrypto on osx with easy_install and I'm getting the following error:
Trying to install mysql-python. Got following error. Got mysql and pythond already installed. Any
while trying to install composer.phar through command line , got an error PHP Fatal
Trying to install the above and get the error message: Failed with HTTP Status
Trying to install some gems under jruby 1.6, but getting connection refused: $ gem
I'm trying to install acts_as_ferret in windows7.But am getting an error Using acts-as-taggable-on (2.1.1)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.