Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Ruby-GNOME2
Nathan Viswa
12/17/2007 12:31:00 AM
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
................................................
------------------------------------------------------------------------------
Need help. Thanks
--
Posted via
http://www.ruby-...
.
2 Answers
Marc Heiler
12/17/2007 1:31:00 AM
0
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 ...
--
Posted via
http://www.ruby-...
.
Nathan Viswa
12/17/2007 3:03:00 AM
0
Marc Heiler 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.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Ruby-GNOME2
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password