views:

2871

answers:

4

With the MacPorts version of ImageMagick 6.4.4 installed, I'm getting an error installing the RMagick gem.

/opt/local/bin/ruby extconf.rb update rmagick
checking for Ruby version >= 1.8.2... yes
checking for /usr/bin/gcc-4.0... yes
checking for Magick-config... no
Can't install RMagick 2.7.0. Can't find Magick-config in
    /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands:
    /Users/jason/.bin:/opt/local/bin:/usr/local/bin:/usr/local/mysql/bin:
    /usr/local/ec2-api-tools/bin:/opt/local/bin:/usr/bin:
    /usr/local/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin

I've installed older versions of rmagick successfully. I've seen references to a dev package of ImageMagick, but it doesn't seem to be available from MacPorts.

How can I install RMagick 2.7 on Mac OS X with ImageMagick 6.4.4 from MacPorts?

+1  A: 

The install script can't find Magick-config in your path. Did you use a non-standard install location when you installed ImageMagick through MacPorts? Usually it goes into /opt/local/bin/

You can see where MacPorts put your Magick-config by running:

port contents ImageMagick

If you find it listed there, then make sure that the directory is included in your PATH and rerun the rmagick install.

Mike
+3  A: 

Try this from the command line before installing the rmagick gem:

sudo port install tiff -macosx imagemagick +q8 +gs +wmf

Also have you read the installation documentation here ?

A: 

done that, but something still does not work out well. keeps spitting

/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- RMagick2.so (LoadError)

at me

but i figured out, that it correctly builds the shared object file. but the name is "wrong".

I get a

/Library/Ruby/Gems/1.8/gems/rmagick-2.11.1/lib/RMagick2.bundle file. renaming it to RMagick2.so fixes this issue

ehaselwanter
A: 

+1 for the answer by ehaselwanter. Worked for me.

Frustrating I can't vote it up myself but there you go...

Timberford