From: Marcel Corso on
On ubuntu 9.10 I had to install the ruby-dev package

sudo apt-get install ruby1.8-dev
--
Posted via http://www.ruby-forum.com/.

From: Ethan on
On Feb 10, 10:49 am, Marcel Corso <marcel.co...(a)gmail.com> wrote:
> On ubuntu 9.10 I had to install the ruby-dev package
>
> sudo apt-get install ruby1.8-dev
> --
> Posted viahttp://www.ruby-forum.com/.

Has anybody gotten this error on Windows 7?

Trying to install rmagick gem an getting the following. Also not sure
which development tools to install.


C:\Ruby19\bin>gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.

C:/Ruby19/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5... 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=C:/Ruby19/bin/ruby
C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed
to generate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:433:in `try_cpp'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:811:in `block in
have_header'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:670:in `block in
checking_for'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block (2 levels)
in postpone'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block in
postpone'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:810:in `have_header'
from extconf.rb:171:in `<main>'


Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/
rmagick-2.12.2 for inspection.
Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/rmagick-2.12.2/
ext/RMagick/gem_make.out