Problems installing the gtk2 gem

Discussion in 'Ruby' started by Erik R., Dec 23, 2010.

  1. Erik R.

    Erik R. Guest

    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/.
     
    Erik R., Dec 23, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Austin 7873
    Replies:
    5
    Views:
    206
    Eric Hodel
    Jan 27, 2007
  2. Pat Maddox
    Replies:
    2
    Views:
    126
    David Masover
    Aug 3, 2008
  3. Nasir Khan
    Replies:
    0
    Views:
    115
    Nasir Khan
    Jun 8, 2009
  4. Adinda P.
    Replies:
    0
    Views:
    205
    Adinda P.
    Nov 6, 2010
  5. Brandon Simmons
    Replies:
    0
    Views:
    373
    Brandon Simmons
    Dec 22, 2010
Loading...

Share This Page