# Issue with gem

**URL:** <https://www.ruby-forum.com/t/issue-with-gem/110615>\
**Category:** Ruby\
**Created:** [July 28, 2007, 5:02am UTC](https://www.ruby-forum.com/t/issue-with-gem/110615 "2007-07-28T05:02:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonsaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5e925/32.png) [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Post date:** [July 28, 2007, 5:02am UTC](https://www.ruby-forum.com/t/issue-with-gem/110615/1 "2007-07-28T05:02:35Z")

</div>

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. 🙂

---

<div class="post-metadata">

**Author:** ![simonsaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5e925/32.png) [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Post date:** [July 28, 2007, 7:22am UTC](https://www.ruby-forum.com/t/issue-with-gem/110615/2 "2007-07-28T07:22:41Z")

</div>

On Jul 27, 2007, at 10:01 PM, Simon S. 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

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?

---

<div class="post-metadata">

**Author:** ![simonsaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5e925/32.png) [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Post date:** [July 28, 2007, 1:57pm UTC](https://www.ruby-forum.com/t/issue-with-gem/110615/3 "2007-07-28T13:57:07Z")

</div>

On 7/27/07, Simon S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![simonsaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5e925/32.png) [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Post date:** [July 28, 2007, 4:51pm UTC](https://www.ruby-forum.com/t/issue-with-gem/110615/4 "2007-07-28T16:51:23Z")

</div>

On 7/28/07, Simon S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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?

---

<div class="post-metadata">

**Author:** ![simonsaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5e925/32.png) [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Post date:** [July 28, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/issue-with-gem/110615/5 "2007-07-28T19:36:41Z")

</div>

ubuntu 7.04

---

<div class="post-metadata">

**Author:** ![simonsaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5e925/32.png) [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Post date:** [July 28, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/issue-with-gem/110615/6 "2007-07-28T16:40:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![simonsaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b5e925/32.png) [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Post date:** [July 28, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/issue-with-gem/110615/7 "2007-07-28T20:07:52Z")

</div>

Simon S. wrote:

> ubuntu 7.04
> 
> On 7/28/07, Todd B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > On 7/28/07, Simon S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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?

You may find this thread interesting:

> **[HOWTO: Install FXRuby using RubyGems](https://ubuntuforums.org/showthread.php?t=31532&highlight=fxruby)**
>
> FXRuby is a Ruby extension module that provides an interface to the FOX GUI library. 
> During installation in Ubuntu, I ran into several small problems - that's why I will summarize the installation here, in case that anyone else gets stuck during...

Cheers
