# Ruby-GNOME2

**URL:** <https://www.ruby-forum.com/t/ruby-gnome2/123359>\
**Category:** Ruby\
**Created:** [December 17, 2007, 1:24am UTC](https://www.ruby-forum.com/t/ruby-gnome2/123359 "2007-12-17T01:24:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pie-social](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/aca169/32.png) [@pie-social](https://www.ruby-forum.com/u/pie-social)\
**Post date:** [December 17, 2007, 1:24am UTC](https://www.ruby-forum.com/t/ruby-gnome2/123359/1 "2007-12-17T01:24:05Z")

</div>

Getting error during testing the install of Ruby-GNOME2.

* * *

I:/InstantRails17/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require': no such file to load -- gtk2 (LoadError) from I:/InstantRails17/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’  
from -e:1

I:\InstantRails17\ruby\Ruby-GNOME2\>

* * *

custom\_require.rb

#–

# Copyright 2006 by Chad F., Rich Kilmer, Jim W. and others.

# All rights reserved.

# See LICENSE.txt for permissions.

#++

require ‘rubygems/source\_index’

module Kernel  
alias gem\_original\_require require # :nodoc:

# 

# We replace Ruby’s require with our own, which is capable of

# loading gems on demand.

# 

# When you call require ‘x’, this is what happens:

# \* If the file can be loaded from the existing Ruby loadpath, it

# is.

# \* Otherwise, installed gems are searched for a file that matches.

# If it’s found in gem ‘y’, that gem is activated (added to the

# loadpath).

# 

# The normal require functionality of returning false if

# that file has already been loaded is preserved.

# 

def require(path) # :nodoc:  
gem\_original\_require path  
rescue LoadError =\> load\_error  
begin  
if spec = Gem.searcher.find(path)  
Gem.activate(spec.name, false, “= #{spec.version}”)  
gem\_original\_require path  
else  
raise load\_error  
end  
end  
end  
end # module Kernel

## module Gem …

Need help. Thanks

---

<div class="post-metadata">

**Author:** ![pie-social](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/aca169/32.png) [@pie-social](https://www.ruby-forum.com/u/pie-social)\
**Post date:** [December 17, 2007, 2:30am UTC](https://www.ruby-forum.com/t/ruby-gnome2/123359/2 "2007-12-17T02:30:36Z")

</div>

Sorry if this comes off harsh, but you should not cross-post/write.

See the Ruby-gnome Mailing list/Forum.

It would have been better to decide for one route, and then wait a  
few days before writing a new mail …

---

<div class="post-metadata">

**Author:** ![pie-social](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/aca169/32.png) [@pie-social](https://www.ruby-forum.com/u/pie-social)\
**Post date:** [December 17, 2007, 4:03am UTC](https://www.ruby-forum.com/t/ruby-gnome2/123359/3 "2007-12-17T04:03:05Z")

</div>

Marc H. wrote:

> Sorry if this comes off harsh, but you should not cross-post/write.
> 
> See the Ruby-gnome Mailing list/Forum.
> 
> It would have been better to decide for one route, and then wait a  
> few days before writing a new mail …

Sorry, I did not realize that gnome had its own forum.
