[Rubygems-developers] my interesting path problems

Trevor wenn0029 at tc.umn.edu
Thu Jan 6 15:41:38 EST 2005


Hello,

Origionally I had started a discussion on the Rails list regarding this
issue, but I think it's more related to Gems than Rails.  It seems
particular to my installation on an sgi-solaris machine, as I tried the
exact same installation on a Linux box and it worked perfectly.

machine > gem
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:26:in
`require': No such file to load -- rubygems/builder (LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:58:in
`manage_gems'
        from /opt/local/bin/gem:4

If I create a script with the following:
#---
require 'rubygems'
require 'rake'
puts $LOAD_PATH
puts Gem.path
#---

machine > ruby testpath.rb
/usr/local/lib/ruby/gems/1.8/gems/rake-0.4.15/bin
/usr/local/lib/ruby/gems/1.8/gems/rake-0.4.15/lib
/usr/local/lib/ruby/site_ruby/1.8
/usr/local/lib/ruby/site_ruby/1.8/sparc-solaris2.7
/usr/local/lib/ruby/site_ruby
/usr/local/lib/ruby/1.8
/usr/local/lib/ruby/1.8/sparc-solaris2.7
.
/usr/local/lib/ruby/gems/1.8

If I create another script with the following:
#---
require 'rubygems'
require 'rake/gempackagetask'
puts $LOAD_PATH
puts Gem.path
#---

machine > ruby testpath.rb
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:26:in
`require': No such file to load -- rubygems/builder (LoadError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:58:in
`manage_gems'
        from
/usr/local/lib/ruby/gems/1.8/gems/rake-0.4.15/lib/rake/gempackagetask.rb:11
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in
`require__'
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in
`require'
        from testpath.rb:2

If I create a third script with the following:
#---
require 'rubygems'
require 'rake/runtest.rb'
puts $LOAD_PATH
puts Gem.path
#---

machine > ruby testpath.rb
/usr/local/lib/ruby/gems/1.8/gems/rake-0.4.15/bin
/usr/local/lib/ruby/gems/1.8/gems/rake-0.4.15/lib
/usr/local/lib/ruby/site_ruby/1.8
/usr/local/lib/ruby/site_ruby/1.8/sparc-solaris2.7
/usr/local/lib/ruby/site_ruby
/usr/local/lib/ruby/1.8
/usr/local/lib/ruby/1.8/sparc-solaris2.7
.
/usr/local/lib/ruby/gems/1.8
Loaded suite testpath
Started

Finished in 0.001528 seconds.

0 tests, 0 assertions, 0 failures, 0 errors


The admin for this machine says that she was able to get gem to run once (to install Rails and the dependencies), however it seems to have developed some sort of path issue in the 24hrs following the install.

Does anybody have any ideas how I could diagnose and solve this problem?

Thanks for any help you may have,
Trevor



More information about the Rubygems-developers mailing list