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

On Wed, Sep 23, 2009 at 12:16 PM, DanS [email protected] wrote:

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

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.

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

Thanks again for the help.

Dan

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.

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

Thanks again for the help.

Dan

On Wed, Sep 23, 2009 at 1:53 PM, DanS [email protected] 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.

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

On Wed, Sep 23, 2009 at 3:20 PM, DanS [email protected] 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.5

And what do you see if you type this:

gem q -rn rspec --prerelease

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

On Wed, Sep 23, 2009 at 1:16 PM, DanS [email protected] 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.com

If 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 E. ([email protected])
ESCAPE POD - The Science Fiction Podcast Magazine
http://www.escapepod.org

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 E.'s advice (thanks Stephen) and
added github as a source. Not sure if that was there prior to that.

On Wed, Sep 23, 2009 at 3:53 PM, DanS [email protected] wrote:

-This is after I followed Stephen E.'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

???

On Wed, Sep 23, 2009 at 3:41 PM, DanS [email protected] 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 repositories

Well that explains why you’re not seeing --prerelease gems. What do
you get from this:

gem sources

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.

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 repository

Just 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