Issue with gem

whenever I install something via gem which presents a menu of options
to me (versions, and 'ruby' vs 'mswin32' , I make my selection and it
gives me this:

1

Building native extensions. This could take a while...
extconf.rb:4:in `require': no such file to load -- mkmf (LoadError)
        from extconf.rb:4

ERROR: While executing gem ... (RuntimeError)
    ERROR: Failed to build gem native extension.
Gem files will remain installed in
/var/lib/gems/1.8/gems/fxruby-1.6.11 for inspection.

Results logged to /var/lib/gems/1.8/gems/fxruby-1.6.11/ext/fox16/gem_make.out

(gem_make.out is empty, by the way. er, well, 1 byte.)

not sure what's going on... gem installs fine when there's no option
menu, but maybe that's a misleading correlation, no clue... new to
ruby and programming in general here.

erm, another thing, somewhat ruby-related... is that scite won't let
me use 'irb' like it's supposed to, and I have no idea why. it says
this:

irb

sh: irb: not found

Exit code: 127

thanks! and btw- WOW, what an amazing community. keep it up. :slight_smile:

The "mkmf" library is part of the standard Ruby library; this error message suggests that you have an incomplete Ruby installation. Can you tell us some more about what operating system you're running, and how you installed Ruby?

···

On Jul 27, 2007, at 10:01 PM, Simon Schuster wrote:

whenever I install something via gem which presents a menu of options
to me (versions, and 'ruby' vs 'mswin32' , I make my selection and it
gives me this:

1

Building native extensions. This could take a while...
extconf.rb:4:in `require': no such file to load -- mkmf (LoadError)
        from extconf.rb:4

It sort of looks like you built ruby without some necessary libraries
and/or development tools.

Todd

···

On 7/27/07, Simon Schuster <significants@gmail.com> wrote:

whenever I install something via gem which presents a menu of options
to me (versions, and 'ruby' vs 'mswin32' , I make my selection and it
gives me this:

> 1
Building native extensions. This could take a while...
extconf.rb:4:in `require': no such file to load -- mkmf (LoadError)
        from extconf.rb:4

I did it from repositories, so I'd assume that that would all be taken
care of. after reinstalling ruby, ruby1.8, and ruby1.9 again from the
repositories, and using gem to try and install fxruby I again get
stopped after choosing an option on the menu, but this time with a
different error.

1

Building native extensions. This could take a while...
*** 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/ruby1.8
        --with-fox-dir
        --without-fox-dir
        --with-fox-include
        --without-fox-include=${fox-dir}/include
        --with-fox-lib
        --without-fox-lib=${fox-dir}/lib
        --with-fxscintilla-dir
        --without-fxscintilla-dir
        --with-fxscintilla-include
        --without-fxscintilla-include=${fxscintilla-dir}/include
        --with-fxscintilla-lib
        --without-fxscintilla-lib=${fxscintilla-dir}/lib

ERROR: While executing gem ... (RuntimeError)
    ERROR: Failed to build gem native extension.
Gem files will remain installed in
/var/lib/gems/1.8/gems/fxruby-1.6.11 for inspection.

and of course I can't check mkmf.log, because it doesn't seem to exist anywhere.

···

On 7/28/07, Todd Benson <caduceass@gmail.com> wrote:

On 7/27/07, Simon Schuster <significants@gmail.com> wrote:
> whenever I install something via gem which presents a menu of options
> to me (versions, and 'ruby' vs 'mswin32' , I make my selection and it
> gives me this:
>
> > 1
> Building native extensions. This could take a while...
> extconf.rb:4:in `require': no such file to load -- mkmf (LoadError)
> from extconf.rb:4

It sort of looks like you built ruby without some necessary libraries
and/or development tools.

Todd

What OS/distribution are you running?

···

On 7/28/07, Simon Schuster <significants@gmail.com> wrote:

I did it from repositories, so I'd assume that that would all be taken
care of. after reinstalling ruby, ruby1.8, and ruby1.9 again from the
repositories, and using gem to try and install fxruby I again get
stopped after choosing an option on the menu, but this time with a
different error.

ubuntu 7.04

···

On 7/28/07, Todd Benson <caduceass@gmail.com> wrote:

On 7/28/07, Simon Schuster <significants@gmail.com> wrote:
> I did it from repositories, so I'd assume that that would all be taken
> care of. after reinstalling ruby, ruby1.8, and ruby1.9 again from the
> repositories, and using gem to try and install fxruby I again get
> stopped after choosing an option on the menu, but this time with a
> different error.

What OS/distribution are you running?

Simon Schuster wrote:

ubuntu 7.04

I did it from repositories, so I'd assume that that would all be taken
care of. after reinstalling ruby, ruby1.8, and ruby1.9 again from the
repositories, and using gem to try and install fxruby I again get
stopped after choosing an option on the menu, but this time with a
different error.

What OS/distribution are you running?

You may find this thread interesting:

http://ubuntuforums.org/showthread.php?t=31532&highlight=fxruby

Cheers

···

On 7/28/07, Todd Benson <caduceass@gmail.com> wrote:

On 7/28/07, Simon Schuster <significants@gmail.com> wrote: