Ruby-GNOME2

N

Nathan Viswa

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 Fowler, Rich Kilmer, Jim Weirich 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 <tt>require 'x'</tt>, 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 <tt>require</tt> 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
................................................
 
M

Marc Heiler

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

Nathan Viswa

Marc said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,121
Latest member
LowellMcGu
Top