# How install a gem which needs library at a special locatin

**URL:** <https://www.ruby-forum.com/t/how-install-a-gem-which-needs-library-at-a-special-locatin/141775>\
**Category:** Ruby\
**Created:** [June 30, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/how-install-a-gem-which-needs-library-at-a-special-locatin/141775 "2008-06-30T15:10:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vouters](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7bcc69/32.png) [@vouters](https://www.ruby-forum.com/u/vouters)\
**Post date:** [June 30, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/how-install-a-gem-which-needs-library-at-a-special-locatin/141775/1 "2008-06-30T15:10:20Z")

</div>

Hello,

I tried to install fxruby-1.6.15 with gem 1.2 under ruby 187 on a Linux  
Fedora box. The Fox library is in /usr/local/fox-1633 directory.

The gem install fxruby fails because (of course) the ruby extconf.rb  
command can’ t found the Fox include and Fox library. It needs the  
–with-fox-dir directive.

So, How can I do that within the gem installer ?

Regards.

---

<div class="post-metadata">

**Author:** ![vouters](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7bcc69/32.png) [@vouters](https://www.ruby-forum.com/u/vouters)\
**Post date:** [June 30, 2008, 3:25pm UTC](https://www.ruby-forum.com/t/how-install-a-gem-which-needs-library-at-a-special-locatin/141775/2 "2008-06-30T15:25:20Z")

</div>

Philippe P. wrote:

> I tried to install fxruby-1.6.15 with gem 1.2 under ruby 187 on a Linux  
> Fedora box. The Fox library is in /usr/local/fox-1633 directory.
> 
> The gem install fxruby fails because (of course) the ruby extconf.rb  
> command can’ t found the Fox include and Fox library. It needs the  
> –with-fox-dir directive.
> 
> So, How can I do that within the gem installer ?  
> Please see this page for instructions:  
> [http://www.fxruby.org/doc/gems.html](http://www.fxruby.org/doc/gems.html)

-igal
