Ruby-GNOME2

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:inrequire’
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

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 …

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs