# RMagick, OS X, and granite

**URL:** <https://www.ruby-forum.com/t/rmagick-os-x-and-granite/102530>\
**Category:** Ruby\
**Created:** [September 15, 2006, 5:02pm UTC](https://www.ruby-forum.com/t/rmagick-os-x-and-granite/102530 "2006-09-15T17:02:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pie-r-squared](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c77e96/32.png) [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Post date:** [September 15, 2006, 5:02pm UTC](https://www.ruby-forum.com/t/rmagick-os-x-and-granite/102530/1 "2006-09-15T17:02:47Z")

</div>

I’m having an odd problem with RMagick. Consider the following script:

############################################################  
require ‘rubygems’  
require ‘RMagick’

Magick::ImageList.new(‘granite:’).display  
############################################################

Under Linux (Debian in particular), this works fine and displays the  
builtin granite tile. Under OS X, I get the following error:

```
    RMagick reading ["granite:"]

```

/sw/lib/site\_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1523:in  
`read': UnableToOpenConfigureFile (Magick::ImageMagickError) from /sw/lib/site_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1523:in`initialize’  
from  
/sw/lib/site\_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1522:in  
`initialize’  
from /tmp/foo.rb:4

Under both Linux and OS X running “display granite:” on the commandline  
works perfectly.

I have Ruby and ImageMagick installed on OS X using Fink. Does anyone  
have  
any insight into this?

–Greg

---

<div class="post-metadata">

**Author:** ![pie-r-squared](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c77e96/32.png) [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Post date:** [September 15, 2006, 10:49pm UTC](https://www.ruby-forum.com/t/rmagick-os-x-and-granite/102530/2 "2006-09-15T22:49:35Z")

</div>

Gregory S. wrote:

> I’m having an odd problem with RMagick. Consider the following script:
> 
> ############################################################  
> require ‘rubygems’  
> require ‘RMagick’
> 
> Magick::ImageList.new(‘granite:’).display  
> ############################################################
> 
> Under Linux (Debian in particular), this works fine and displays the  
> builtin granite tile. Under OS X, I get the following error:
> 
> ```
> RMagick reading ["granite:"]
> 
> ```
> 
> /sw/lib/site\_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1523:in  
> `read': UnableToOpenConfigureFile (Magick::ImageMagickError) from /sw/lib/site_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1523:in `initialize’  
> from  
> /sw/lib/site\_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1522:in  
> `initialize’  
> from /tmp/foo.rb:4
> 
> Under both Linux and OS X running “display granite:” on the commandline  
> works perfectly.
> 
> I have Ruby and ImageMagick installed on OS X using Fink. Does anyone  
> have  
> any insight into this?
> 
> –Greg

I can’t imagine why display works and RMagick doesn’t. I’m tempted to  
believe you’ve got two versions of ImageMagick installed. But in any  
case, go to this page: [ImageMagick – Resources](http://www.imagemagick.org/script/resources.php)  
and scroll down to the part that says “Under Unix and Linux, ImageMagick  
searches for these configuration files in the following order”. I’m  
guessing that the information there will help.

---

<div class="post-metadata">

**Author:** ![pie-r-squared](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c77e96/32.png) [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Post date:** [September 16, 2006, 6:24pm UTC](https://www.ruby-forum.com/t/rmagick-os-x-and-granite/102530/3 "2006-09-16T18:24:47Z")

</div>

Gregory S. wrote:

> Actually, it turns out I did. I had somehow managed to get Fink to install  
> 6.1.8 development files but 6.2.8 executables (and libraries for both).  
> Once I removed the 6.1.8 libraries and development files and installed the  
> 6.2.8, all it took was uninstalling and reinstalling the RMagick gem.  
> (Note: fink install imagemagick imagemagick10-dev is the right incantation;  
> fink install imagemagick imagemagick-dev is the wrong one.) All is well  
> now. Thanks for the help.

Good news! Thanks for letting me know.

---

<div class="post-metadata">

**Author:** ![pie-r-squared](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c77e96/32.png) [@pie-r-squared](https://www.ruby-forum.com/u/pie-r-squared)\
**Post date:** [September 16, 2006, 3:14pm UTC](https://www.ruby-forum.com/t/rmagick-os-x-and-granite/102530/4 "2006-09-16T15:14:25Z")

</div>

On Sat, Sep 16, 2006 at 05:50:28AM +0900, Tim H. wrote:  
} Gregory S. wrote:  
} \> I’m having an odd problem with RMagick. Consider the following  
script:  
} \>  
} \> ############################################################  
} \> require ‘rubygems’  
} \> require ‘RMagick’  
} \>  
} \> Magick::ImageList.new(‘granite:’).display  
} \> ############################################################  
} \>  
} \> Under Linux (Debian in particular), this works fine and displays the  
} \> builtin granite tile. Under OS X, I get the following error:  
} \>  
} \> RMagick reading [“granite:”]  
} \> /sw/lib/site\_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1523:in  
} \> `read': UnableToOpenConfigureFile (Magick::ImageMagickError) } > from } > /sw/lib/site_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1523:in } >`initialize’  
} \> from  
} \> /sw/lib/site\_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1522:in  
} \> `initialize’  
} \> from /tmp/foo.rb:4  
} \>  
} \> Under both Linux and OS X running “display granite:” on the  
commandline  
} \> works perfectly.  
} \>  
} \> I have Ruby and ImageMagick installed on OS X using Fink. Does  
anyone  
} \> have  
} \> any insight into this?  
} \>  
} \> --Greg  
}  
} I can’t imagine why display works and RMagick doesn’t. I’m tempted to  
} believe you’ve got two versions of ImageMagick installed. But in any  
[…]

Actually, it turns out I did. I had somehow managed to get Fink to  
install  
6.1.8 development files but 6.2.8 executables (and libraries for both).  
Once I removed the 6.1.8 libraries and development files and installed  
the  
6.2.8, all it took was uninstalling and reinstalling the RMagick gem.  
(Note: fink install imagemagick imagemagick10-dev is the right  
incantation;  
fink install imagemagick imagemagick-dev is the wrong one.) All is well  
now. Thanks for the help.

–Greg
