# RMagick

**URL:** <https://rubytalk.org/t/rmagick/52012>\
**Category:** ruby-talk\
**Created:** [26 February 2009 22:14 UTC](https://rubytalk.org/t/rmagick/52012 "2009-02-26T22:14:26Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Malone](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@Michael\_Malone](https://rubytalk.org/u/Michael_Malone)\
**Post date:** [26 February 2009 22:14 UTC](https://rubytalk.org/t/rmagick/52012/1 "2009-02-26T22:14:26Z")

</div>

Rong wrote:

> I have fixed the problem above. I am running os x 10.5.6.  
> I am now getting a different error.
> 
> Last login: Thu Feb 26 15:26:59 on ttys000  
> ronald-greens-imac:~ ron$ convert logo: logo.gif  
> ronald-greens-imac:~ ron$ display logo.gif  
> X connection to /tmp/launch-30Nznb/:0 broken (explicit kill or server  
> shutdown).  
> ronald-greens-imac:~ ron$ sudo gem install rmagick  
> Password:  
> Building native extensions. This could take a while...  
> ERROR: Error installing rmagick:  
> &nbsp;&nbsp;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... \*\*\* extconf.rb failed \*\*\*  
> Could not create Makefile due to some reason, probably lack of  
> necessary libraries and/or headers. Check the mkmf.log file for more  
> details. You may need configuration options.

stdint.h is part of the C library. This should be installed along with a C compiler. Please tell me you're not trying to compile a C extension without a C compiler?

> **···**
>
> # ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission.

---

<div class="post-metadata">

**Author:** ![Ron\_Green](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Ron\_Green](https://rubytalk.org/u/Ron_Green)\
**Post date:** [26 February 2009 22:54 UTC](https://rubytalk.org/t/rmagick/52012/2 "2009-02-26T22:54:17Z")

</div>

GCC is installed.

> **···**
>
> On Feb 26, 4:14 pm, Michael Malone \<michael.mal...@tait.co.nz\> wrote:
> 
> > Rong wrote:  
> > \> I have fixed the problem above. I am running os x 10.5.6.  
> > \> I am now getting a different error.
> > 
> > \> Last login: Thu Feb 26 15:26:59 on ttys000  
> > \> ronald-greens-imac:~ ron$ convert logo: logo.gif  
> > \> ronald-greens-imac:~ ron$ display logo.gif  
> > \> X connection to /tmp/launch-30Nznb/:0 broken (explicit kill or server  
> > \> shutdown).  
> > \> ronald-greens-imac:~ ron$ sudo gem install rmagick  
> > \> Password:  
> > \> 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... \*\*\* extconf.rb failed \*\*\*  
> > \> Could not create Makefile due to some reason, probably lack of  
> > \> necessary libraries and/or headers. Check the mkmf.log file for more  
> > \> details. You may need configuration options.
> > 
> > stdint.h is part of the C library. This should be installed along with  
> > a C compiler. Please tell me you're not trying to compile a C extension  
> > without a C compiler?
> > 
> > # ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission.

---

<div class="post-metadata">

**Author:** ![Charles\_Johnson](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charles\_Johnson](https://rubytalk.org/u/Charles_Johnson)\
**Post date:** [27 February 2009 15:08 UTC](https://rubytalk.org/t/rmagick/52012/3 "2009-02-27T15:08:14Z")

</div>

Have you tried either the osx installer from rubyforge (automated build from source: [http://is.gd/l6pP](http://is.gd/l6pP) ), or have you built the whole shebang from scratch yourself using [http://is.gd/glSd](http://is.gd/glSd)

I followed the second procedure myself with few problems.

Cheers--

Charles

> **···**
>
> On Feb 26, 2009, at 4:54 PM, Rong wrote:
> 
> > GCC is installed.
> 
> ---  
> Charles Johnson  
> Advanced Computing Center for Research and Education  
> Vanderbilt University

---

<div class="post-metadata">

**Author:** ![Ron\_Green](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Ron\_Green](https://rubytalk.org/u/Ron_Green)\
**Post date:** [27 February 2009 18:57 UTC](https://rubytalk.org/t/rmagick/52012/4 "2009-02-27T18:57:20Z")

</div>

Charles, trying to install the gem.

> **···**
>
> On Feb 27, 9:08 am, Charles Johnson \<charles.john...@accre.vanderbilt.edu\> wrote:
> 
> > On Feb 26, 2009, at 4:54 PM, Rong wrote:
> > 
> > \> GCC is installed.
> > 
> > Have you tried either the osx installer from rubyforge (automated  
> > build from source:[http://is.gd/l6pP\](http://is.gd/l6pP%5C)), or have you built the whole  
> > shebang from scratch yourself usinghttp://is.gd/glSd
> > 
> > I followed the second procedure myself with few problems.
> > 
> > Cheers--
> > 
> > Charles  
> > ---  
> > Charles Johnson  
> > Advanced Computing Center for Research and Education  
> > Vanderbilt University

---

<div class="post-metadata">

**Author:** ![Charles\_Johnson](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charles\_Johnson](https://rubytalk.org/u/Charles_Johnson)\
**Post date:** [27 February 2009 19:08 UTC](https://rubytalk.org/t/rmagick/52012/5 "2009-02-27T19:08:25Z")

</div>

And imagemagick installed without issues?

Cheers--

Charles

> **···**
>
> On Feb 27, 2009, at 12:57 PM, Rong wrote:
> 
> > Charles, trying to install the gem.
> > 
> > On Feb 27, 9:08 am, Charles Johnson \> \<charles.john...@accre.vanderbilt.edu\> wrote:
> > 
> > > On Feb 26, 2009, at 4:54 PM, Rong wrote:
> > > 
> > > > GCC is installed.
> > > 
> > > Have you tried either the osx installer from rubyforge (automated  
> > > build from source:[http://is.gd/l6pP\](http://is.gd/l6pP%5C)), or have you built the whole  
> > > shebang from scratch yourself usinghttp://is.gd/glSd
> > > 
> > > I followed the second procedure myself with few problems.
> > > 
> > > Cheers--
> > > 
> > > Charles  
> > > ---  
> > > Charles Johnson  
> > > Advanced Computing Center for Research and Education  
> > > Vanderbilt University
> 
> ---  
> Charles Johnson  
> Advanced Computing Center for Research and Education  
> Vanderbilt University  
> charles.johnson@accre.vanderbilt.edu  
> Office: 615-343-2776  
> Cell: 615-478-8799

---

<div class="post-metadata">

**Author:** ![Ron\_Green](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Ron\_Green](https://rubytalk.org/u/Ron_Green)\
**Post date:** [27 February 2009 20:24 UTC](https://rubytalk.org/t/rmagick/52012/6 "2009-02-27T20:24:54Z")

</div>

Yes. At the end of the os x install instructions are 3 test commands  
that all work perfectly.

> **···**
>
> On Feb 27, 1:08 pm, Charles Johnson \<charles.john...@accre.vanderbilt.edu\> wrote:
> 
> > And imagemagick installed without issues?
> > 
> > Cheers--
> > 
> > Charles  
> > On Feb 27, 2009, at 12:57 PM, Rong wrote:
> > 
> > \> Charles, trying to install the gem.
> > 
> > \> On Feb 27, 9:08 am, Charles Johnson \> \> \<charles.john...@accre.vanderbilt.edu\> wrote:  
> > \>\> On Feb 26, 2009, at 4:54 PM, Rong wrote:
> > 
> > \>\>\> GCC is installed.
> > 
> > \>\> Have you tried either the osx installer from rubyforge (automated  
> > \>\> build from source:[http://is.gd/l6pP\](http://is.gd/l6pP%5C)), or have you built the whole  
> > \>\> shebang from scratch yourself usinghttp://is.gd/glSd
> > 
> > \>\> I followed the second procedure myself with few problems.
> > 
> > \>\> Cheers--
> > 
> > \>\> Charles  
> > \>\> ---  
> > \>\> Charles Johnson  
> > \>\> Advanced Computing Center for Research and Education  
> > \>\> Vanderbilt University
> > 
> > ---  
> > Charles Johnson  
> > Advanced Computing Center for Research and Education  
> > Vanderbilt University  
> > charles.john...@accre.vanderbilt.edu  
> > Office: 615-343-2776  
> > Cell: 615-478-8799

---

<div class="post-metadata">

**Author:** ![Charles\_Johnson](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@Charles\_Johnson](https://rubytalk.org/u/Charles_Johnson)\
**Post date:** [27 February 2009 20:57 UTC](https://rubytalk.org/t/rmagick/52012/7 "2009-02-27T20:57:21Z")

</div>

My conclusion would be, then, that the gem does not like ruby 1.9 just yet. I am no help there, sorry.

Cheers--

Charles

> **···**
>
> On Feb 27, 2009, at 2:24 PM, Rong wrote:
> 
> > Yes. At the end of the os x install instructions are 3 test commands  
> > that all work perfectly.
> > 
> > On Feb 27, 1:08 pm, Charles Johnson \> \<charles.john...@accre.vanderbilt.edu\> wrote:
> 
> ---  
> Charles Johnson  
> Advanced Computing Center for Research and Education  
> Vanderbilt University

---

<div class="post-metadata">

**Author:** ![Tim\_Hunter4](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@Tim\_Hunter4](https://rubytalk.org/u/Tim_Hunter4)\
**Post date:** [27 February 2009 21:11 UTC](https://rubytalk.org/t/rmagick/52012/8 "2009-02-27T21:11:47Z")

</div>

Charles Johnson wrote:

> **···**
>
> > On Feb 27, 2009, at 2:24 PM, Rong wrote:
> > 
> > > Yes. At the end of the os x install instructions are 3 test commands  
> > > that all work perfectly.
> > > 
> > > On Feb 27, 1:08 pm, Charles Johnson \>\> \<charles.john...@accre.vanderbilt.edu\> wrote:
> > 
> > My conclusion would be, then, that the gem does not like ruby 1.9 just yet. I am no help there, sorry.
> 
> RMagick works just fine with 1.9.1. I'm waiting for the O.P. to show his mkmf.log.
> 
> --  
> RMagick: [http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Ron\_Green](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Ron\_Green](https://rubytalk.org/u/Ron_Green)\
**Post date:** [27 February 2009 22:49 UTC](https://rubytalk.org/t/rmagick/52012/9 "2009-02-27T22:49:22Z")

</div>

MKMF.log

\<main\>: checking for Ruby version \>= 1.8.2... -------------------- yes

> **···**
>
> --------------------
> 
> find\_executable: checking for gcc... -------------------- yes
> 
> --------------------
> 
> find\_executable: checking for Magick-config... --------------------  
> yes
> 
> --------------------
> 
> \<main\>: checking for ImageMagick version \>= 6.3.0...  
> -------------------- yes
> 
> --------------------
> 
> \<main\>: checking for HDRI disabled version of ImageMagick...  
> -------------------- yes
> 
> --------------------
> 
> On Feb 27, 3:11 pm, Tim Hunter \<TimHun...@nc.rr.com\> wrote:
> 
> > Charles Johnson wrote:  
> > \> On Feb 27, 2009, at 2:24 PM, Rong wrote:
> > 
> > \>\> Yes. At the end of the os x install instructions are 3 test commands  
> > \>\> that all work perfectly.
> > 
> > \>\> On Feb 27, 1:08 pm, Charles Johnson \> \>\> \<charles.john...@accre.vanderbilt.edu\> wrote:
> > 
> > \> My conclusion would be, then, that the gem does not like ruby 1.9 just  
> > \> yet. I am no help there, sorry.
> > 
> > RMagick works just fine with 1.9.1. I'm waiting for the O.P. to show his  
> > mkmf.log.
> > 
> > --  
> > RMagick:[http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Ron\_Green](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Ron\_Green](https://rubytalk.org/u/Ron_Green)\
**Post date:** [27 February 2009 22:50 UTC](https://rubytalk.org/t/rmagick/52012/10 "2009-02-27T22:50:30Z")

</div>

mkmf.log

\<main\>: checking for Ruby version \>= 1.8.2... -------------------- yes

> **···**
>
> --------------------
> 
> find\_executable: checking for gcc... -------------------- yes
> 
> --------------------
> 
> find\_executable: checking for Magick-config... --------------------  
> yes
> 
> --------------------
> 
> \<main\>: checking for ImageMagick version \>= 6.3.0...  
> -------------------- yes
> 
> --------------------
> 
> \<main\>: checking for HDRI disabled version of ImageMagick...  
> -------------------- yes
> 
> --------------------
> 
> On Feb 27, 3:11 pm, Tim Hunter \<TimHun...@nc.rr.com\> wrote:
> 
> > Charles Johnson wrote:  
> > \> On Feb 27, 2009, at 2:24 PM, Rong wrote:
> > 
> > \>\> Yes. At the end of the os x install instructions are 3 test commands  
> > \>\> that all work perfectly.
> > 
> > \>\> On Feb 27, 1:08 pm, Charles Johnson \> \>\> \<charles.john...@accre.vanderbilt.edu\> wrote:
> > 
> > \> My conclusion would be, then, that the gem does not like ruby 1.9 just  
> > \> yet. I am no help there, sorry.
> > 
> > RMagick works just fine with 1.9.1. I'm waiting for the O.P. to show his  
> > mkmf.log.
> > 
> > --  
> > RMagick:[http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Ron\_Green](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Ron\_Green](https://rubytalk.org/u/Ron_Green)\
**Post date:** [27 February 2009 23:45 UTC](https://rubytalk.org/t/rmagick/52012/11 "2009-02-27T23:45:08Z")

</div>

the Mkmf.log.

\<main\>: checking for Ruby version \>= 1.8.2... -------------------- yes

> **···**
>
> --------------------
> 
> find\_executable: checking for gcc... -------------------- yes
> 
> --------------------
> 
> find\_executable: checking for Magick-config... --------------------  
> yes
> 
> --------------------
> 
> \<main\>: checking for ImageMagick version \>= 6.3.0...  
> -------------------- yes
> 
> --------------------
> 
> \<main\>: checking for HDRI disabled version of ImageMagick...  
> -------------------- yes
> 
> --------------------
> 
> On Feb 27, 3:11 pm, Tim Hunter \<TimHun...@nc.rr.com\> wrote:
> 
> > Charles Johnson wrote:  
> > \> On Feb 27, 2009, at 2:24 PM, Rong wrote:
> > 
> > \>\> Yes. At the end of the os x install instructions are 3 test commands  
> > \>\> that all work perfectly.
> > 
> > \>\> On Feb 27, 1:08 pm, Charles Johnson \> \>\> \<charles.john...@accre.vanderbilt.edu\> wrote:
> > 
> > \> My conclusion would be, then, that the gem does not like ruby 1.9 just  
> > \> yet. I am no help there, sorry.
> > 
> > RMagick works just fine with 1.9.1. I'm waiting for the O.P. to show his  
> > mkmf.log.
> > 
> > --  
> > RMagick:[http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Tim\_Hunter4](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@Tim\_Hunter4](https://rubytalk.org/u/Tim_Hunter4)\
**Post date:** [27 February 2009 23:30 UTC](https://rubytalk.org/t/rmagick/52012/12 "2009-02-27T23:30:48Z")

</div>

Rong wrote:

> MKMF.log
> 
> \<main\>: checking for Ruby version \>= 1.8.2... -------------------- yes
> 
> --------------------
> 
> find\_executable: checking for gcc... -------------------- yes
> 
> --------------------
> 
> find\_executable: checking for Magick-config... --------------------  
> yes
> 
> --------------------
> 
> \<main\>: checking for ImageMagick version \>= 6.3.0...  
> -------------------- yes
> 
> --------------------
> 
> \<main\>: checking for HDRI disabled version of ImageMagick...  
> -------------------- yes
> 
> --------------------
> 
> > Charles Johnson wrote:
> > 
> > > > Yes. At the end of the os x install instructions are 3 test commands  
> > > > that all work perfectly.
> > > 
> > > My conclusion would be, then, that the gem does not like ruby 1.9 just  
> > > yet. I am no help there, sorry.
> > 
> > RMagick works just fine with 1.9.1. I'm waiting for the O.P. to show his  
> > mkmf.log.
> > 
> > --  
> > RMagick:[http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

This can't be all of it. It doesn't include the failure you described in your post:

checking for stdint.h... \*\*\* extconf.rb failed \*\*\*

Why don't you start over and post the output from "gem install" and then mkmf.log? Also, where did you get the XCode Tools (install disk? download?), how did you install ImageMagick, and what's the output from

gcc --version

> **···**
>
> > On Feb 27, 3:11 pm, Tim Hunter \<TimHun...@nc.rr.com\> wrote:
> > 
> > > > On Feb 27, 2009, at 2:24 PM, Rong wrote:
> > > > 
> > > > > On Feb 27, 1:08 pm, Charles Johnson \>\>\>\> \<charles.john...@accre.vanderbilt.edu\> wrote:
> 
> --  
> RMagick: [http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Ron\_Green](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Ron\_Green](https://rubytalk.org/u/Ron_Green)\
**Post date:** [28 February 2009 04:27 UTC](https://rubytalk.org/t/rmagick/52012/13 "2009-02-28T04:27:43Z")

</div>

Terminal output

ronald-greens-imac:~ ron$ sudo gem install rmagick  
Password:  
Building native extensions. This could take a while...  
ERROR: Error installing rmagick:  
&nbsp;&nbsp;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... \*\*\* extconf.rb failed \*\*\*  
Could not create Makefile due to some reason, probably lack of  
necessary libraries and/or headers. Check the mkmf.log file for more  
details. You may need configuration options.

Provided configuration options:  
&nbsp;&nbsp;--with-opt-dir  
&nbsp;&nbsp;--without-opt-dir  
&nbsp;&nbsp;--with-opt-include  
&nbsp;&nbsp;--without-opt-include=${opt-dir}/include  
&nbsp;&nbsp;--with-opt-lib  
&nbsp;&nbsp;--without-opt-lib=${opt-dir}/lib  
&nbsp;&nbsp;--with-make-prog  
&nbsp;&nbsp;--without-make-prog  
&nbsp;&nbsp;--srcdir=.  
&nbsp;&nbsp;--curdir  
&nbsp;&nbsp;--ruby=/usr/local/bin/ruby  
/usr/local/lib/ruby/1.9.1/mkmf.rb:362:in `try\_do': The complier failed  
to generate an executable file. (RuntimeError)  
You have to install development tools first.  
&nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:431:in `try\_cpp'  
&nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:809:in `block in have\_header'  
&nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking\_for'  
&nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in  
postpone'  
&nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:248:in `open'  
&nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone'  
&nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:248:in `open'  
&nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'  
&nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:667:in `checking\_for'  
&nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:808:in `have\_header'  
&nbsp;&nbsp;from extconf.rb:161:in `\<main\>'

Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/  
rmagick-2.9.1 for inspection.  
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.9.1/  
ext/RMagick/gem\_make.out

GCC version 4.0.1

MkMF.log

\<main\>: checking for Ruby version \>= 1.8.2... -------------------- yes

> **···**
>
> --------------------
> 
> find\_executable: checking for gcc... -------------------- yes
> 
> --------------------
> 
> find\_executable: checking for Magick-config... --------------------  
> yes
> 
> --------------------
> 
> \<main\>: checking for ImageMagick version \>= 6.3.0...  
> -------------------- yes
> 
> --------------------
> 
> \<main\>: checking for HDRI disabled version of ImageMagick...  
> -------------------- yes
> 
> --------------------
> 
> Yes, this all that's in this file. I checked the last modified time  
> and date and it is correct.
> 
> As stated above the ImageMagick install is the os x binary.  
> On Feb 27, 5:45 pm, Rong \<ron.gr...@gmail.com\> wrote:
> 
> > the Mkmf.log.
> > 
> > \<main\>: checking for Ruby version \>= 1.8.2... -------------------- yes
> > 
> > --------------------
> > 
> > find\_executable: checking for gcc... -------------------- yes
> > 
> > --------------------
> > 
> > find\_executable: checking for Magick-config... --------------------  
> > yes
> > 
> > --------------------
> > 
> > \<main\>: checking for ImageMagick version \>= 6.3.0...  
> > -------------------- yes
> > 
> > --------------------
> > 
> > \<main\>: checking for HDRI disabled version of ImageMagick...  
> > -------------------- yes
> > 
> > --------------------
> > 
> > On Feb 27, 3:11 pm, Tim Hunter \<TimHun...@nc.rr.com\> wrote:
> > 
> > \> Charles Johnson wrote:  
> > \> \> On Feb 27, 2009, at 2:24 PM, Rong wrote:
> > 
> > \> \>\> Yes. At the end of the os x install instructions are 3 test commands  
> > \> \>\> that all work perfectly.
> > 
> > \> \>\> On Feb 27, 1:08 pm, Charles Johnson \> \> \>\> \<charles.john...@accre.vanderbilt.edu\> wrote:
> > 
> > \> \> My conclusion would be, then, that the gem does not like ruby 1.9 just  
> > \> \> yet. I am no help there, sorry.
> > 
> > \> RMagick works just fine with 1.9.1. I'm waiting for the O.P. to show his  
> > \> mkmf.log.
> > 
> > \> --  
> > \> RMagick:[http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Tim\_Hunter4](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@Tim\_Hunter4](https://rubytalk.org/u/Tim_Hunter4)\
**Post date:** [28 February 2009 15:48 UTC](https://rubytalk.org/t/rmagick/52012/14 "2009-02-28T15:48:30Z")

</div>

Rong wrote:

> Terminal output
> 
> ronald-greens-imac:~ ron$ sudo gem install rmagick  
> Password:  
> Building native extensions. This could take a while...  
> ERROR: Error installing rmagick:  
> &nbsp;&nbsp;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... \*\*\* extconf.rb failed \*\*\*  
> Could not create Makefile due to some reason, probably lack of  
> necessary libraries and/or headers. Check the mkmf.log file for more  
> details. You may need configuration options.
> 
> Provided configuration options:  
> &nbsp;&nbsp;--with-opt-dir  
> &nbsp;&nbsp;--without-opt-dir  
> &nbsp;&nbsp;--with-opt-include  
> &nbsp;&nbsp;--without-opt-include=${opt-dir}/include  
> &nbsp;&nbsp;--with-opt-lib  
> &nbsp;&nbsp;--without-opt-lib=${opt-dir}/lib  
> &nbsp;&nbsp;--with-make-prog  
> &nbsp;&nbsp;--without-make-prog  
> &nbsp;&nbsp;--srcdir=.  
> &nbsp;&nbsp;--curdir  
> &nbsp;&nbsp;--ruby=/usr/local/bin/ruby  
> /usr/local/lib/ruby/1.9.1/mkmf.rb:362:in `try\_do': The complier failed  
> to generate an executable file. (RuntimeError)  
> You have to install development tools first.  
> &nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:431:in `try\_cpp'  
> &nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:809:in `block in have\_header'  
> &nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking\_for'  
> &nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in  
> postpone'  
> &nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:248:in `open'  
> &nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone'  
> &nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:248:in `open'  
> &nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'  
> &nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:667:in `checking\_for'  
> &nbsp;&nbsp;from /usr/local/lib/ruby/1.9.1/mkmf.rb:808:in `have\_header'  
> &nbsp;&nbsp;from extconf.rb:161:in `\<main\>'
> 
> Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/  
> rmagick-2.9.1 for inspection.  
> Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.9.1/  
> ext/RMagick/gem\_make.out
> 
> GCC version 4.0.1
> 
> MkMF.log
> 
> \<main\>: checking for Ruby version \>= 1.8.2... -------------------- yes
> 
> --------------------
> 
> find\_executable: checking for gcc... -------------------- yes
> 
> --------------------
> 
> find\_executable: checking for Magick-config... --------------------  
> yes
> 
> --------------------
> 
> \<main\>: checking for ImageMagick version \>= 6.3.0...  
> -------------------- yes
> 
> --------------------
> 
> \<main\>: checking for HDRI disabled version of ImageMagick...  
> -------------------- yes
> 
> --------------------
> 
> Yes, this all that's in this file. I checked the last modified time  
> and date and it is correct.
> 
> As stated above the ImageMagick install is the os x binary.
> 
> > the Mkmf.log.
> > 
> > \<main\>: checking for Ruby version \>= 1.8.2... -------------------- yes
> > 
> > --------------------
> > 
> > find\_executable: checking for gcc... -------------------- yes
> > 
> > --------------------
> > 
> > find\_executable: checking for Magick-config... --------------------  
> > yes
> > 
> > --------------------
> > 
> > \<main\>: checking for ImageMagick version \>= 6.3.0...  
> > -------------------- yes
> > 
> > --------------------
> > 
> > \<main\>: checking for HDRI disabled version of ImageMagick...  
> > -------------------- yes
> > 
> > --------------------
> > 
> > > Charles Johnson wrote:
> > > 
> > > > > Yes. At the end of the os x install instructions are 3 test commands  
> > > > > that all work perfectly.
> > > > 
> > > > My conclusion would be, then, that the gem does not like ruby 1.9 just  
> > > > yet. I am no help there, sorry.
> > > 
> > > RMagick works just fine with 1.9.1. I'm waiting for the O.P. to show his  
> > > mkmf.log.  
> > > --  
> > > RMagick:[http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

I think your XCode Tools installation is corrupt and you need to reinstall.

Here's why. The failure occurs the first time extconf.rb tries to execute gcc. Here's the same part of mkmf.log when I run it on OS X 10.5.6:

checking for Ruby version \>= 1.8.2... -------------------- yes

> **···**
>
> > On Feb 27, 5:45 pm, Rong \<ron.gr...@gmail.com\> wrote:
> > 
> > > On Feb 27, 3:11 pm, Tim Hunter \<TimHun...@nc.rr.com\> wrote:
> > > 
> > > > > On Feb 27, 2009, at 2:24 PM, Rong wrote:
> > > > > 
> > > > > > On Feb 27, 1:08 pm, Charles Johnson \>\>\>\>\> \<charles.john...@accre.vanderbilt.edu\> wrote:
> 
> --------------------
> 
> find\_executable: checking for gcc... -------------------- yes
> 
> --------------------
> 
> find\_executable: checking for Magick-config... -------------------- yes
> 
> --------------------
> 
> checking for ImageMagick version \>= 6.3.0... -------------------- yes
> 
> --------------------
> 
> checking for HDRI disabled version of ImageMagick...-------------------- yes
> 
> --------------------
> 
> have\_header: checking for stdint.h... -------------------- yes
> 
> "gcc -E -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin9.4.0 -I/Users/timothyhunter/RMagick/ext/RMagick -I/opt/local/include -I/opt/local/include/ImageMagick -Wall -g -I/opt/local/include/ImageMagick conftest.c -o conftest.i"  
> checked program was:  
> /\* begin \*/  
> 1: #include \<stdint.h\>  
> /\* end \*/
> 
> --------------------
> 
> The first few tests don't use gcc. The Ruby version test checks the value of RUBY\_VERSION. The test for gcc searches your $PATH for the gcc executable. Similarly the test for Magick-config searches your $PATH for the Magick-config script. The test for the ImageMagick version executes Magick-config and checks the output. The test for the "HDRI disabled version of ImageMagick" also executes Magick-config.
> 
> It's not until the test for stdint.h that extconf.rb (via mkmf.rb) needs to actually execute gcc. To perform this test, mkmf.rb a minimal C program and then tries to compile it with gcc. If gcc successfully compiles the program then mkmf.rb concludes that stdint.h is present, otherwise it concludes that stdint.h is missing. (A missing stdint.h is not a terminal error, btw.)
> 
> Now, if stdint.h was missing, this what you'd see in mkmf.log.
> 
> have\_header: checking for stdint.h... -------------------- no
> 
> "gcc -E -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin9.4.0 -I. -I/opt/local/include -I/opt/local/include/ImageMagick -Wall -g -I/opt/local/include/ImageMagick conftest.c -o conftest.i"  
> conftest.c:1:21: error: stdint.h: No such file or directory  
> checked program was:  
> /\* begin \*/  
> 1: #include \<stdint.h\>  
> /\* end \*/
> 
> However, your mkmf.log file simply stops without even logging the "checking for stdint.h..." that you see on the terminal. Also, there's no Ruby traceback on the terminal, just an abrupt statement that "\*\*\* extconf.rb failed \*\*\*".
> 
> My conclusion is that gcc abended, forcing extconf.rb to stop running immediately. Therefore the fix I recommend is to reinstall the XCode Tools, either from your OS X install DVD or by downloading a new copy from the Apple Developer Connection web site ([http://developer.apple.com](http://developer.apple.com)). You may want to uninstall the current copy of XCode Tools first, just to be sure. Here's instructions for doing that: [http://www.meandmark.com/xcodetips.html\](http://www.meandmark.com/xcodetips.html%5C).
> 
> Good luck!
> 
> --  
> RMagick: [http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Ron\_Green](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Ron\_Green](https://rubytalk.org/u/Ron_Green)\
**Post date:** [1 March 2009 04:08 UTC](https://rubytalk.org/t/rmagick/52012/15 "2009-03-01T04:08:16Z")

</div>

I downloaded the newest version of XCode Tools from ADC.  
I cannot uninstall previous version because the file referenced in the  
link you provided does not exist.  
Anyway, reinstalled Xcode tools 3.1.2.

Reran sudo gem instakk RMagick.

Same result.

> **···**
>
> On Feb 28, 9:48 am, Tim Hunter \<TimHun...@nc.rr.com\> wrote:
> 
> > Rong wrote:  
> > \> Terminal output
> > 
> > \> ronald-greens-imac:~ ron$ sudo gem installrmagick  
> > \> Password:  
> > \> Building native extensions. This could take a while...  
> > \> ERROR: Error installingrmagick:  
> > \> ERROR: Failed to build gem native extension.
> > 
> > \> /usr/local/bin/ruby extconf.rb installrmagick  
> > \> 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... \*\*\* extconf.rb failed \*\*\*  
> > \> Could not create Makefile due to some reason, probably lack of  
> > \> necessary libraries and/or headers. Check the mkmf.log file for more  
> > \> details. You may need configuration options.
> > 
> > \> Provided configuration options:  
> > \> --with-opt-dir  
> > \> --without-opt-dir  
> > \> --with-opt-include  
> > \> --without-opt-include=${opt-dir}/include  
> > \> --with-opt-lib  
> > \> --without-opt-lib=${opt-dir}/lib  
> > \> --with-make-prog  
> > \> --without-make-prog  
> > \> --srcdir=.  
> > \> --curdir  
> > \> --ruby=/usr/local/bin/ruby  
> > \> /usr/local/lib/ruby/1.9.1/mkmf.rb:362:in `try\_do': The complier failed  
> > \> to generate an executable file. (RuntimeError)  
> > \> You have to install development tools first.  
> > \> from /usr/local/lib/ruby/1.9.1/mkmf.rb:431:in `try\_cpp'  
> > \> from /usr/local/lib/ruby/1.9.1/mkmf.rb:809:in `block in have\_header'  
> > \> from /usr/local/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking\_for'  
> > \> from /usr/local/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in  
> > \> postpone'  
> > \> from /usr/local/lib/ruby/1.9.1/mkmf.rb:248:in `open'  
> > \> from /usr/local/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone'  
> > \> from /usr/local/lib/ruby/1.9.1/mkmf.rb:248:in `open'  
> > \> from /usr/local/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'  
> > \> from /usr/local/lib/ruby/1.9.1/mkmf.rb:667:in `checking\_for'  
> > \> from /usr/local/lib/ruby/1.9.1/mkmf.rb:808:in `have\_header'  
> > \> from extconf.rb:161:in `\<main\>'
> > 
> > \> Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/  
> > \>rmagick-2.9.1 for inspection.  
> > \> Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.9.1/  
> > \> ext/RMagick/gem\_make.out
> > 
> > \> GCC version 4.0.1
> > 
> > \> MkMF.log
> > 
> > \> \<main\>: checking for Ruby version \>= 1.8.2... -------------------- yes
> > 
> > \> --------------------
> > 
> > \> find\_executable: checking for gcc... -------------------- yes
> > 
> > \> --------------------
> > 
> > \> find\_executable: checking for Magick-config... --------------------  
> > \> yes
> > 
> > \> --------------------
> > 
> > \> \<main\>: checking for ImageMagick version \>= 6.3.0...  
> > \> -------------------- yes
> > 
> > \> --------------------
> > 
> > \> \<main\>: checking for HDRI disabled version of ImageMagick...  
> > \> -------------------- yes
> > 
> > \> --------------------
> > 
> > \> Yes, this all that's in this file. I checked the last modified time  
> > \> and date and it is correct.
> > 
> > \> As stated above the ImageMagick install is the os x binary.  
> > \> On Feb 27, 5:45 pm, Rong \<ron.gr...@gmail.com\> wrote:  
> > \>\> the Mkmf.log.
> > 
> > \>\> \<main\>: checking for Ruby version \>= 1.8.2... -------------------- yes
> > 
> > \>\> --------------------
> > 
> > \>\> find\_executable: checking for gcc... -------------------- yes
> > 
> > \>\> --------------------
> > 
> > \>\> find\_executable: checking for Magick-config... --------------------  
> > \>\> yes
> > 
> > \>\> --------------------
> > 
> > \>\> \<main\>: checking for ImageMagick version \>= 6.3.0...  
> > \>\> -------------------- yes
> > 
> > \>\> --------------------
> > 
> > \>\> \<main\>: checking for HDRI disabled version of ImageMagick...  
> > \>\> -------------------- yes
> > 
> > \>\> --------------------
> > 
> > \>\> On Feb 27, 3:11 pm, Tim Hunter \<TimHun...@nc.rr.com\> wrote:
> > 
> > \>\>\> Charles Johnson wrote:  
> > \>\>\>\> On Feb 27, 2009, at 2:24 PM, Rong wrote:  
> > \>\>\>\>\> Yes. At the end of the os x install instructions are 3 test commands  
> > \>\>\>\>\> that all work perfectly.  
> > \>\>\>\>\> On Feb 27, 1:08 pm, Charles Johnson \> \>\>\>\>\> \<charles.john...@accre.vanderbilt.edu\> wrote:  
> > \>\>\>\> My conclusion would be, then, that the gem does not like ruby 1.9 just  
> > \>\>\>\> yet. I am no help there, sorry.  
> > \>\>\>RMagickworks just fine with 1.9.1. I'm waiting for the O.P. to show his  
> > \>\>\> mkmf.log.  
> > \>\>\> --  
> > \>\>\>RMagick:[http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)
> > 
> > I think your XCode Tools installation is corrupt and you need to reinstall.
> > 
> > Here's why. The failure occurs the first time extconf.rb tries to  
> > execute gcc. Here's the same part of mkmf.log when I run it on OS X 10.5.6:
> > 
> > checking for Ruby version \>= 1.8.2... -------------------- yes
> > 
> > --------------------
> > 
> > find\_executable: checking for gcc... -------------------- yes
> > 
> > --------------------
> > 
> > find\_executable: checking for Magick-config... -------------------- yes
> > 
> > --------------------
> > 
> > checking for ImageMagick version \>= 6.3.0... -------------------- yes
> > 
> > --------------------
> > 
> > checking for HDRI disabled version of ImageMagick...-------------------- yes
> > 
> > --------------------
> > 
> > have\_header: checking for stdint.h... -------------------- yes
> > 
> > "gcc -E -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin9.4.0  
> > -I/Users/timothyhunter/RMagick/ext/RMagick-I/opt/local/include  
> > -I/opt/local/include/ImageMagick -Wall -g  
> > -I/opt/local/include/ImageMagick conftest.c -o conftest.i"  
> > checked program was:  
> > /\* begin \*/  
> > 1: #include \<stdint.h\>  
> > /\* end \*/
> > 
> > --------------------
> > 
> > The first few tests don't use gcc. The Ruby version test checks the  
> > value of RUBY\_VERSION. The test for gcc searches your $PATH for the gcc  
> > executable. Similarly the test for Magick-config searches your $PATH for  
> > the Magick-config script. The test for the ImageMagick version executes  
> > Magick-config and checks the output. The test for the "HDRI disabled  
> > version of ImageMagick" also executes Magick-config.
> > 
> > It's not until the test for stdint.h that extconf.rb (via mkmf.rb) needs  
> > to actually execute gcc. To perform this test, mkmf.rb a minimal C  
> > program and then tries to compile it with gcc. If gcc successfully  
> > compiles the program then mkmf.rb concludes that stdint.h is present,  
> > otherwise it concludes that stdint.h is missing. (A missing stdint.h is  
> > not a terminal error, btw.)
> > 
> > Now, if stdint.h was missing, this what you'd see in mkmf.log.
> > 
> > have\_header: checking for stdint.h... -------------------- no
> > 
> > "gcc -E -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin9.4.0 -I.  
> > -I/opt/local/include -I/opt/local/include/ImageMagick -Wall -g  
> > -I/opt/local/include/ImageMagick conftest.c -o conftest.i"  
> > conftest.c:1:21: error: stdint.h: No such file or directory  
> > checked program was:  
> > /\* begin \*/  
> > 1: #include \<stdint.h\>  
> > /\* end \*/
> > 
> > However, your mkmf.log file simply stops without even logging the  
> > "checking for stdint.h..." that you see on the terminal. Also, there's  
> > no Ruby traceback on the terminal, just an abrupt statement that "\*\*\*  
> > extconf.rb failed \*\*\*".
> > 
> > My conclusion is that gcc abended, forcing extconf.rb to stop running  
> > immediately. Therefore the fix I recommend is to reinstall the XCode  
> > Tools, either from your OS X install DVD or by downloading a new copy  
> > from the Apple Developer Connection web site  
> > ([http://developer.apple.com](http://developer.apple.com)). You may want to uninstall the current copy  
> > of XCode Tools first, just to be sure. Here's instructions for doing  
> > that:[http://www.meandmark.com/xcodetips.html\](http://www.meandmark.com/xcodetips.html%5C).
> > 
> > Good luck!
> > 
> > --RMagick:[http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Tim\_Hunter4](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@Tim\_Hunter4](https://rubytalk.org/u/Tim_Hunter4)\
**Post date:** [1 March 2009 14:20 UTC](https://rubytalk.org/t/rmagick/52012/16 "2009-03-01T14:20:09Z")

</div>

Rong wrote:

> I downloaded the newest version of XCode Tools from ADC.  
> I cannot uninstall previous version because the file referenced in the  
> link you provided does not exist.  
> Anyway, reinstalled Xcode tools 3.1.2.
> 
> Reran sudo gem instakk RMagick.
> 
> Same result.

Well, that was my best shot. Sorry, I don't have any other suggestions. Perhaps somebody else will be able to help. Good luck!

> **···**
>
> --  
> RMagick: [http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)
