Recent Posts by Frederick C. Lee
|
Feb 14, 2008
Frederick C....
1 post
|
Topic: Agile Web Development with Rails / Depot with Rails 2.0.2 Env: Mac OS X (Leopard) rails -v Rails 1.2.6 gem -v 1.0.1 ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.1] But now I’ve encountered:
[/Users/Ric/workarea/ruby/depot]script/server
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- rails (LoadError)
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from ./script/../config/boot.rb:46
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from script/server:2
I’ve traced this error to an exception raised for an unknown path in custom_require.rb:
def require(path) # :nodoc:
gem_original_require path
rescue LoadError => load_error
if load_error.message =~ /\A[Nn]o such file to load -- #{Regexp.escape path}\z/ and
spec = Gem.searcher.find(path) then
Gem.activate(spec.name, false, "= #{spec.version}")
gem_original_require path
else
raise load_error
end
end
Rather than slamming brick walls, are/will there me more-recent (c2008) AWDWR codes that I can study? Regards, |
1 post
