Rails gem install failure

I updated my rubygems to 0.8.1, then tried to install rails and got this
failure. What am I doing wrong?

Thanks!

C:\DOCUME~1\DESMOND>gem -i rubygems
Attempting local installation of 'rubygems'
-> Local installation can't proceed: Unknown gem file 'rubygems'
Attempting remote installation of 'rubygems'
Successfully installed rubygems-update version 0.8.1

C:\DOCUME~1\DESMOND>gem -i rails
Attempting local installation of 'rails'
-> Local installation can't proceed: Unknown gem file 'rails'
Attempting remote installation of 'rails'
undefined method `version_requirement' for #<Gem::Dependency:0x53a52d8>

Its Me wrote:

C:\DOCUME~1\DESMOND>gem -i rubygems
Attempting local installation of 'rubygems'
-> Local installation can't proceed: Unknown gem file 'rubygems'
Attempting remote installation of 'rubygems'
Successfully installed rubygems-update version 0.8.1

C:\DOCUME~1\DESMOND>gem -i rails
Attempting local installation of 'rails'
-> Local installation can't proceed: Unknown gem file 'rails'
Attempting remote installation of 'rails'
undefined method `version_requirement' for #<Gem::Dependency:0x53a52d8>

In both instances you are trying to do a "local" install, which means you are trying to install from a gem repository that is on the same machine. You want to do a remote install.

"gem install --remote rails" should do what you want

···

--
She drove a Plymouth Satellite
Faster than the Speed of Light...

http://www.joeygibson.com/blog

Atlanta Ruby User Group http://www.AtlRUG.org

I updated my rubygems to 0.8.1, then tried to install rails and got this
failure. What am I doing wrong?

Thanks!

C:\DOCUME~1\DESMOND>gem -i rubygems
Attempting local installation of 'rubygems'
-> Local installation can't proceed: Unknown gem file 'rubygems'
Attempting remote installation of 'rubygems'
Successfully installed rubygems-update version 0.8.1

Did you run "update_rubygems" after you installed the "rubygems-update" gem?

Per Chad's 0.8.x instructions:

$ gem install rubygems-update
$ update_rubygems

We will fix this two-step process in the future.

···

On 10/5/04 8:59 AM, "Its Me" <itsme213@hotmail.com> wrote:

C:\DOCUME~1\DESMOND>gem -i rails
Attempting local installation of 'rails'
-> Local installation can't proceed: Unknown gem file 'rails'
Attempting remote installation of 'rails'
undefined method `version_requirement' for #<Gem::Dependency:0x53a52d8>

>C:\DOCUME~1\DESMOND>gem -i rubygems
>Attempting local installation of 'rubygems'
>-> Local installation can't proceed: Unknown gem file 'rubygems'
>Attempting remote installation of 'rubygems'
>Successfully installed rubygems-update version 0.8.1
>
>C:\DOCUME~1\DESMOND>gem -i rails
>Attempting local installation of 'rails'
>-> Local installation can't proceed: Unknown gem file 'rails'
>Attempting remote installation of 'rails'

   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

>undefined method `version_requirement' for #<Gem::Dependency:0x53a52d8>
>
>

In both instances you are trying to do a "local" install, which means
you are trying to install from a gem repository that is on the same
machine. You want to do a remote install.

"gem install --remote rails" should do what you want

I don't think so. See the line I highlighted above. The 'undefined method'
error is the actual problem.

···

On Tue, Oct 05, 2004 at 10:19:05PM +0900, Joey Gibson wrote:

"Joey Gibson" <joey@joeygibson.com> wrote in message
news:41629F43.2090600@joeygibson.com...

Its Me wrote:
>C:\DOCUME~1\DESMOND>gem -i rails
>Attempting local installation of 'rails'
> -> Local installation can't proceed: Unknown gem file 'rails'
>Attempting remote installation of 'rails'
>undefined method `version_requirement' for #<Gem::Dependency:0x53a52d8>

In both instances you are trying to do a "local" install, which means
you are trying to install from a gem repository that is on the same
machine. You want to do a remote install.

"gem install --remote rails" should do what you want

From the output I think 0.8.1 gems tries local, then attempts remote. The
failure message was from an undefined method.

I tried your command line and it die not work (with 0.8.1). I tried
  gem -Ri rails
and got the same undefined method failure.

Other ideas?

Did you run "update_rubygems" after you installed the "rubygems-update"

gem?

Just did, and it helped.

The "rails" installation went smoothly except for these 2 errors/warning
while installing RDoc. Do I have a proper install of Rails?

Thanks!

···

----------------

lib/dispatcher.rb:34:45: Skipping require of dynamic string:
"#{controller_name}
_controller"
Installing RDoc documentation for rake-0.4.8...
Installing RDoc documentation for activerecord-0.9.5...
Installing RDoc documentation for actionpack-0.8.5...

lib/action_controller/scaffolding.rb:87:37: Skipping require of dynamic
string:
"#{model_id.id2name}"

Right...those are rdoc messages...they are not really errors.

So yes, you should not have a proper installation of rails.

-rich

···

On 10/5/04 11:14 AM, "Its Me" <itsme213@hotmail.com> wrote:

Did you run "update_rubygems" after you installed the "rubygems-update"

gem?

Just did, and it helped.

The "rails" installation went smoothly except for these 2 errors/warning
while installing RDoc. Do I have a proper install of Rails?

Thanks!
----------------

lib/dispatcher.rb:34:45: Skipping require of dynamic string:
"#{controller_name}
_controller"
Installing RDoc documentation for rake-0.4.8...
Installing RDoc documentation for activerecord-0.9.5...
Installing RDoc documentation for actionpack-0.8.5...

lib/action_controller/scaffolding.rb:87:37: Skipping require of dynamic
string:
"#{model_id.id2name}"

Brian Candler said:

···

On Tue, Oct 05, 2004 at 10:19:05PM +0900, Joey Gibson wrote:

>C:\DOCUME~1\DESMOND>gem -i rubygems
>Attempting local installation of 'rubygems'
>-> Local installation can't proceed: Unknown gem file 'rubygems'
>Attempting remote installation of 'rubygems'
>Successfully installed rubygems-update version 0.8.1
>
>C:\DOCUME~1\DESMOND>gem -i rails
>Attempting local installation of 'rails'
>-> Local installation can't proceed: Unknown gem file 'rails'
>Attempting remote installation of 'rails'

   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

>undefined method `version_requirement' for #<Gem::Dependency:0x53a52d8>
>
>

In both instances you are trying to do a "local" install, which means
you are trying to install from a gem repository that is on the same
machine. You want to do a remote install.

"gem install --remote rails" should do what you want

I don't think so. See the line I highlighted above. The 'undefined method'
error is the actual problem.

If the gem command isn't complaining about the '-i' on the base gem
command, then you are running an old version of gems. You need to upgrade
to 0.8.1 and try again. (I would suggest upgrading by loading the
rubygems tar or zip file and running "ruby install.rb". Your gem install
may be old enough that it has problems with some of the newer gem spec
fields.)

--
-- Jim Weirich jim@weirichhouse.org http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)