Chad Fowler
10/13/2004 4:33:00 PM
On Thu, 14 Oct 2004 00:38:28 +0900, jim@freeze.org <jim@freeze.org> wrote:
> * Richard Kilmer <rich@infoether.com> [2004-10-14 00:26:05 +0900]:
>
> > Do a:
> >
> > gem list
> >
>
> This is a fresh install mind you (which is questionable since it had
> errors at the end)
>
> > gem list
>
> *** LOCAL GEMS ***
>
> > And ensure that the sources gem is present is present.
>
> I don't know what this sources gem is. Was that supposed
> to be part of the install?
>
Yea, it's part of the install. "sources" is the list of remote
repositories. We package it as a gem (right now there's only one, but
doing it as a gem means we can update it remotely later with "gem
update" or "gem install sources").
> > Likely you need to sudo to install rails though...
> >
> > sudo gem install -r rails
> >
>
> We'll get to this later, but this system does not have sudo
> and I don't have access to root, that is why I did the local
> ruby install.
>
You shouldn't need sudo access if you're running a ruby that is
installed in a place you have access to. I just installed ruby 1.8.1,
rubygems 0.8.1, and then some gems into that local directory. There's
something amuck on your system (not necessarily your system's fault,
of course). Or you might have some part of your configuration in a
state that we haven't seen/tested with RubyGems. Let the hunt
continue :) (Thanks for wading through this with us).
> Other data that may help in the debug:
>
> > which ruby
> /disk2/jfn/usr/local/bin/ruby
I'm not sure if this would explain everything, but have you tried
running all of these with explicit full paths to your intended Ruby
interpreter?
> > ruby -v
> ruby 1.8.1 (2003-12-25) [i686-linux]
Same here.
> > which gem
> /disk2/jfn/usr/local/bin/gem
> > gem -v
> 0.8.1
Same here too.
> > gem list
>
> *** LOCAL GEMS ***
Here, I see the sources gem installed, which should be present in
every rubygems installation.
> > gem install rubyonrails
> Attempting local installation of 'rubyonrails'
> Local gem file not found: rubyonrails*.gem
> Attempting remote installation of 'rubyonrails'
> /disk2/jfn/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:116:in `activate':
> (Gem::LoadError)
> Could not find RubyGem sources (> 0.0.0)
> from /disk2/jfn/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:34:in
> `require_gem'
> from
> /disk2/jfn/usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:71:in
> `get_cache_sources'
> from
> /disk2/jfn/usr/local/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:43:in
> `install'
> from
> /disk2/jfn/usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_commands.rb:156:in
> `execute'
> from
> /disk2/jfn/usr/local/lib/ruby/site_ruby/1.8/rubygems/command.rb:49:in
> `invoke'
> from
> /disk2/jfn/usr/local/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:90:in
> `process_args'
> from
> /disk2/jfn/usr/local/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:63:in
> `run'
> from
> /disk2/jfn/usr/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:9:in `run'
> from /disk2/jfn/usr/local/bin/gem:11
>
This is because it's trying to go download the rails gem, but it can't
load the sources definition to see where to go get the rails gem from.
It's all caused by the permissions problem you have while running
install.rb
Thanks for your patience,
Chad