Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Philipp Ringli
RE: Can't find the ImageMagick library ... [ reply ]  
2013-01-30 07:58
That was the problem:
https://github.com/rmagick/rmagick/issues/60#issuecomment-11541042

Arghh.

By: Philipp Ringli
RE: Can't find the ImageMagick library ... [ reply ]  
2013-01-30 07:36
Okay, I found the mkmf.log:
http://pastebin.com/Ccj8vgRu

Any help is greatly appreciated.

By: Philipp Ringli
RE: Can't find the ImageMagick library ... [ reply ]  
2013-01-29 18:20
I have exactly the same problem.
Can't even find the mkmf.log ...
I installed imagemagick via homebrew (OS X 10.8.2).
http://pastebin.com/bWW8FDbV

By: Tim Hunter
RE: Can't find the ImageMagick library ... [ reply ]  
2009-04-28 22:15
The RMagick configuration script checks to make sure that ImageMagick has been installed by looking for its entry point InitializeMagick in 3 likely libraries, libMagick.so, libMagickCore.so, or libMagick++.so. In recent versions of ImageMagick it's in libMagickCore.so.

The script does this by creating a trivial C program that includes a call to InitializeMagick and then compiling and linking it with one of the libraries. If that succeeds then the library is found, if not it moves on to the next library.

When you install ImageMagick, the ImageMagick configuration script creates a file called Magick-config and installs in $PREFIX/bin. If you run the following command it will show you the directory in which libMagickCore.so is installed:

Magick-config --libs

This is the path which the RMagick config script uses when searching for InitializeMagick.

The compile/link trick will fail if the link step fails for any reason, even if InitializeMagick is in fact present. The link step will fail if one of ImageMagick's dependent libraries can't be found, which makes the config script think that InitializeMagick isn't present. Thus the "or one of the dependent libraries" part of the message.

So, to find out why the link failed you have to look at linker error messages in mkmf.log. You can find this file by running the "gem env" command to get the gem paths. The file will be in the rmagick-2.9.1/ext/RMagick directory of one of the paths.

If you can't figure out from the log what's going on, post it here and I'll take a look.

By: Troels Knak-Nielsen
Can't find the ImageMagick library ... [ reply ]  
2009-04-28 07:54
Hi,

I'm trying to install rmagick on a fedora system. Since the official packages only include ImageMagick 6.2.8, I have had to build a newer one my self (Or rather, have my sysadm do it for me). It seems that this part went well, but when I try to install the rmagick gem, I get the following output:

$ sudo gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install rmagick
checking for Ruby version >= 1.8.2... yes
checking for gcc... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.3.0... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for magick/MagickCore.h... yes
checking for InitializeMagick() in -lMagick... no
checking for InitializeMagick() in -lMagickCore... no
checking for InitializeMagick() in -lMagick++... no
Can't install RMagick 2.9.1. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.

*** extconf.rb failed ***

(snip)

What does this mean and what can I do about it?