views:

127

answers:

1

Hey all,

I have a seemingly simple error but I can't seem to figure out what to do to resolve it. I have tried uninstalling and reinstalling but that hasn't helped me out. I am new to the terminal and to ruby/ruby on rails, so forgive my potentially stupid question. Does anyone know how to resolve this issue?

This is the exact error message I get when I try to run rspec.

/opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:827:in report_activate_error': Could not find RubyGem rspec-core (>= 0) (Gem::LoadError) from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:261:inactivate' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:68:in `gem' from /usr/local/bin/rspec:18

Any help would be greatly appreciated. I am currently doing the RoR tutorial and can't get this to work...

Thanks in advance!

A: 

A few clarifying questions: - specifically, what tutorial are you working through? - do you see rspec-core listed when you run: gem list

Don Smith
Hey, I don't see it listed (i'm assuming this is the problem...)
Phil
The tutorial I am working on is the railstutorial.org one
Phil
Gotcha. In chapter 3 if you use the Gemfile provided, when you run bundle install it will install all of the listed gems including their dependencies. Because rspec and rspec-rails are included, rspec-core should get installed and you should see it when you run gem list. Did this help?
Don Smith
Hey I had done that but something must have gotten messed up along the way. I am restarting from chapter three with a brand new project and everything seems to be working fine after a clean install. Testing is an important part of the development process so I was better off restarting and getting it to work. Thanks for you help!
Phil