Karl von Laudermann
5/28/2007 10:25:00 PM
On May 28, 12:24 pm, Jim Weirich <j...@weirichhouse.org> wrote:
>
> Odd, RubyGems isn't finding some of its own libraries. If the files
> were missing, I would have expected an error on the require. Instead it
> looks as if the files are found, but the contents are not there.
> Interesting.
>
> Try the following commands in irb:
>
> require 'rubygems/remote_installer' # makes sure the file can be
> found
> Gem::RemoteInstaller # makes sure the class was loaded
> $:.find { |d| File.exist? File.join(d,
> 'rubygems/remote_installer.rb') }
> # Finds the location of the
> require file
>
> The last command should show the location of the file containing the
> RemoteInstaller class. Open the file and make sure it contains a proper
> definition for RemoteInstaller.
Thank you! That was the problem: for some reason, the file
remote_installer.rb was present, but empty (zero bytes in size). But
there was also a file called remote_installer.1.rb that had the
correct contents. Likewise, source_info_cache.rb was empty, and its
contents were in source_info_cache.1.rb. I have no idea why this
happened, and all the other files seem fine. Fixing this solved the
problem.
Thanks again!