Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing RMagick on Mac OS X with MacPorts

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?

like image 472
Jason Wadsworth Avatar asked Oct 02 '08 20:10

Jason Wadsworth


3 Answers

I suggest using Homebrew instead of Macports. After installing Homebrew, run:

brew install imagemagick
gem install rmagick
like image 126
balexand Avatar answered Oct 17 '22 14:10

balexand


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 ?

like image 36
user6325 Avatar answered Oct 17 '22 15:10

user6325


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.

like image 4
Mike Avatar answered Oct 17 '22 16:10

Mike