DanS
2009-Sep-23 17:16 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
I''m trying to install rspec so I can work with the new book chapter. This what the console shows after running "rake install_gem" Successfully built RubyGem Name: rspec Version: 1.2.9.rc1 File: rspec-1.2.9.rc1.gem mv rspec-1.2.9.rc1.gem pkg/rspec-1.2.9.rc1.gem sudo gem install bmabey-fakefs --version ''>=0.1.1'' ERROR: could not find gem bmabey-fakefs locally or in a repository I went and installed bmabey-fakefs from: http://github.com/bmabey/fakefs but I still get the same error after installing bmabey-fakefs. I notice that "gem list" command shows this as "fakefs" and not "bmabey- fakefs" but I don''t know if this naming difference matters, or what to do about it if it does. Can anyone tell me how to solve this? Or if I can safely ignore this? Any help appreciated. Dan
David Chelimsky
2009-Sep-23 17:40 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
On Wed, Sep 23, 2009 at 12:16 PM, DanS <dansteinicke at gmail.com> wrote:> I''m trying to install rspec so I can work with the new book chapter. > This what the console shows after running "rake install_gem" > > ?Successfully built RubyGem > ?Name: rspec > ?Version: 1.2.9.rc1 > ?File: rspec-1.2.9.rc1.gem > mv rspec-1.2.9.rc1.gem pkg/rspec-1.2.9.rc1.gem > sudo gem install ?bmabey-fakefs --version ''>=0.1.1'' > ERROR: ?could not find gem bmabey-fakefs locally or in a repository > > I went and installed bmabey-fakefs from: > http://github.com/bmabey/fakefs > > but I still get the same error after installing bmabey-fakefs. ?I > notice that "gem list" command shows this as "fakefs" and not "bmabey- > fakefs" but I don''t know if this naming difference matters, or what to > do about it if it does. > > Can anyone tell me how to solve this? ?Or if I can safely ignore this?2 things you can do. Install from rubyforge: [sudo] gem install rspec --prerelease or .... if you clone the git rep, just install it w/ the gem command: rake gem [sudo] gem install pkg/rspec-1.2.9.rc1.gem> Any help appreciated. > > Dan > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
DanS
2009-Sep-23 18:53 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
Thanks so much for the help on this.> [sudo] gem install rspec --prereleaseThis seemed to install version 1.2.8 not the 1.2.9.rc1 I was looking for.> > if you clone the git rep, just install it w/ the gem command: > > rake gem > [sudo] gem install pkg/rspec-1.2.9.rc1.gemThis way did the trick for me. :) Thanks again for the help. Dan
DanS
2009-Sep-23 18:54 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
Thanks so much for the help on this.> [sudo] gem install rspec --prereleaseThis seemed to install version 1.2.8 not the 1.2.9.rc1 I was looking for.> > if you clone the git rep, just install it w/ the gem command: > > rake gem > [sudo] gem install pkg/rspec-1.2.9.rc1.gemThis way did the trick for me. :) Thanks again for the help. Dan
DanS
2009-Sep-23 18:54 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
Thanks so much for the help on this.> [sudo] gem install rspec --prereleaseThis seemed to install version 1.2.8 not the 1.2.9.rc1 I was looking for.> > if you clone the git rep, just install it w/ the gem command: > > rake gem > [sudo] gem install pkg/rspec-1.2.9.rc1.gemThis way did the trick for me. :) Thanks again for the help. Dan
David Chelimsky
2009-Sep-23 19:26 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
On Wed, Sep 23, 2009 at 1:53 PM, DanS <dansteinicke at gmail.com> wrote:> Thanks so much for the help on this. > >> [sudo] gem install rspec --prerelease > > This seemed to install version 1.2.8 not the 1.2.9.rc1 I was looking > for.What OS and ruby/rubygems version? The --prerelease flag is a fairly recent addition and may not work everywhere yet.> >> >> if you clone the git rep, just install it w/ the gem command: >> >> rake gem >> [sudo] gem install pkg/rspec-1.2.9.rc1.gem > This way did the trick for me. :) > > Thanks again for the help. > > Dan > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Stephen Eley
2009-Sep-23 19:45 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
On Wed, Sep 23, 2009 at 1:16 PM, DanS <dansteinicke at gmail.com> wrote:> > but I still get the same error after installing bmabey-fakefs. ?I > notice that "gem list" command shows this as "fakefs" and not "bmabey- > fakefs" but I don''t know if this naming difference matters, or what to > do about it if it does.I''m glad you got the problem fixed by another route, but if it comes up again (or for the benefit of others): Most likely you hadn''t added Github as a gem repository. The gem naming scheme you saw, "bmabey-fakefs," is how Github names all gems served out of its repository. It''s not necessarily a _good_ way, and it''s caused all sorts of headaches, but they stand by it due to their principle that no single Github repo is the "authoritative" one for a gem. To solve this problem permanently, run this on the command line at some point:> sudo gem sources --add http://gems.github.comIf you just want to add Github to the repo list on a case-by-case basis, do this instead the next time you install a Github gem:> sudo gem install bmabey-fakefs --source http://gems.github.com-- Have Fun, Steve Eley (sfeley at gmail.com) ESCAPE POD - The Science Fiction Podcast Magazine http://www.escapepod.org
DanS
2009-Sep-23 20:20 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
> What OS and ruby/rubygems version? The --prerelease flag is a fairly > recent addition and may not work everywhere yet.Mac OS X 10.5.8 ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] gem 1.3.5
David Chelimsky
2009-Sep-23 20:25 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
On Wed, Sep 23, 2009 at 3:20 PM, DanS <dansteinicke at gmail.com> wrote:>> What OS and ruby/rubygems version? The --prerelease flag is a fairly >> recent addition and may not work everywhere yet. > > Mac OS X 10.5.8 > ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] > gem 1.3.5And what do you see if you type this: gem q -rn rspec --prerelease
DanS
2009-Sep-23 20:41 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
> And what do you see if you type this: > > gem q -rn rspec --prerelease*** REMOTE GEMS *** ERROR: While executing gem ... (Gem::OperationNotSupportedError) Prereleases not supported on legacy repositories
David Chelimsky
2009-Sep-23 20:42 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
On Wed, Sep 23, 2009 at 3:41 PM, DanS <dansteinicke at gmail.com> wrote:>> And what do you see if you type this: >> >> gem q -rn rspec --prerelease > > *** REMOTE GEMS *** > > ERROR: ?While executing gem ... (Gem::OperationNotSupportedError) > ? ?Prereleases not supported on legacy repositoriesWell that explains why you''re not seeing --prerelease gems. What do you get from this: gem sources
DanS
2009-Sep-23 20:53 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
> Well that explains why you''re not seeing --prerelease gems. What do > you get from this: > > gem sources*** CURRENT SOURCES *** http://gems.rubyforge.org http://gems.rubyonrails.org http://gems.github.com -This is after I followed Stephen Eley''s advice (thanks Stephen) and added github as a source. Not sure if that was there prior to that.
David Chelimsky
2009-Sep-23 21:00 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
On Wed, Sep 23, 2009 at 3:53 PM, DanS <dansteinicke at gmail.com> wrote:>> Well that explains why you''re not seeing --prerelease gems. What do >> you get from this: >> >> gem sources > > *** CURRENT SOURCES *** > > http://gems.rubyforge.org > http://gems.rubyonrails.org > http://gems.github.com > > -This is after I followed Stephen Eley''s advice (thanks Stephen) and > added github as a source. ?Not sure if that was there prior to that.I''ve got this: $ gem sources *** CURRENT SOURCES *** http://gemcutter.org http://gems.rubyforge.org/ http://gems.github.com/ My guess is that the server at http://gems.rubyonrails.org needs to be updated. If you don''t need that I''d remove it from your source list. You can always get gems from there with --source http://gems.rubyforge.org/ on the command line. $ gem sources -r http://gems.rubyonrails.org $ gem q -rn rspec --prerelease ????
DanS
2009-Sep-23 21:23 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.9.rc1
> My guess is that the server at http://gems.rubyonrails.org needs to be > updated. If you don''t need that I''d remove it from your source list. > You can always get gems from there with --sourcehttp://gems.rubyforge.org/on the command line. > > $ gem sources -r ?http://gems.rubyonrails.org > $ gem q -rn rspec --prerelease > > ????Success! After removing http://gems.rubyonrails.org as a source... gem q -rn rspec --prerelease *** REMOTE GEMS *** rspec (1.2.9.rc1, 1.2.7.rc1) rspec-rails (1.2.9.rc1, 1.2.7.rc1) Thanks for all the help. Hope it ends up helping some other folks too.
George Mauer
2009-Oct-10 17:22 UTC
[rspec-users] bmabey-fakefs Not Found Error when installing rspec 1.2.
DanS wrote:> I''m trying to install rspec so I can work with the new book chapter. > This what the console shows after running "rake install_gem" > > Successfully built RubyGem > Name: rspec > Version: 1.2.9.rc1 > File: rspec-1.2.9.rc1.gem > mv rspec-1.2.9.rc1.gem pkg/rspec-1.2.9.rc1.gem > sudo gem install bmabey-fakefs --version ''>=0.1.1'' > ERROR: could not find gem bmabey-fakefs locally or in a repositoryJust ran into this problem and none of the posted answers helped. Here is the solution: Going to http://gems.github.com/ I noticed that it RubyGems 1.2.0 or higher is required for working with github. PS C:\code\RubyPlayground> gem -v 0.9.4 PS C:\code\RubyPlayground> gem update --system PS C:\code\RubyPlayground> gem install rspec -- Posted via http://www.ruby-forum.com/.