[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Rails gem install failure

Its Me

10/5/2004 12:59:00 PM

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>


7 Answers

Joey Gibson

10/5/2004 1:19:00 PM

0

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.joeygibso...
http://www.joeygibso.../life/Wisdom.html
Atlanta Ruby User Group http://www....




Brian Candler

10/5/2004 1:28:00 PM

0

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.


Its Me

10/5/2004 1:30:00 PM

0


"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?


Richard Kilmer

10/5/2004 1:56:00 PM

0




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

> 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.

>
> 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

10/5/2004 3:10:00 PM

0

> 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}"


Richard Kilmer

10/5/2004 3:33:00 PM

0

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}"
>
>
>
>




Jim Weirich

10/5/2004 4:00:00 PM

0


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://onest...
-----------------------------------------------------------------
"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)