Problems installing the gtk2 gem

Hi all!

I am having some problem installing the gtk2 gem.
When I try to do so I get the error message:

/usr/bin/ruby extconf.rb
checking for GCC... *** 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/bin/ruby
/usr/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to
generate an executable file. (RuntimeError)
You have to install development tools first.
  from /usr/lib/ruby/1.9.1/mkmf.rb:446:in `try_compile'
  from /usr/lib/ruby/1.9.1/mkmf.rb:605:in `macro_defined?'
  from extconf.rb:17:in `block in <main>'
  from /usr/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'
  from /usr/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone'
  from /usr/lib/ruby/1.9.1/mkmf.rb:254:in `open'
  from /usr/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'
  from /usr/lib/ruby/1.9.1/mkmf.rb:254:in `open'
  from /usr/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'
  from /usr/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'
  from extconf.rb:16:in `<main>'

And then looking in the mkmf.rb file in the created gtk2 gem directory
it says:

"gcc-o conftest -I/usr/include/ruby-1.9.1/i686-linux
-I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -
I.-D_FILE_OFFSET_BITS = 64-march = i686-mtune = generic-O2-pipe-fPIC
conftest.c-L.
-L/usr/lib-L.-rdynamic-Wl,-export-dynamic-lruby-static-lpthread
-lrt-ldl-lcrypt-lm-lc "
In file included from / usr/include/ruby-1.9.1/ruby/ruby.h: 50:0;
                  from / usr/include/ruby-1.9.1/ruby.h: 32;
                  from conftest.c: 1:
/ usr / include / stdlib.h: 1:1: error: leftover '\ \ 315' in program
/ usr / include / stdlib.h: 1:1: error: leftover '\ \ 205' in program
/ usr / include / stdlib.h: 1:1: error: leftover '\ \ 301' in program
/ usr / include / stdlib.h: 1:1: error: leftover '\ \ 251' in program

I have tried to search the web for this error, but got nothing.

Anybody got an idea how to fix this?

···

--
Posted via http://www.ruby-forum.com/.