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
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?
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:
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:
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.
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.
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.