Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rake won't run #88

Closed
SamStuckey opened this issue Dec 6, 2015 · 2 comments
Closed

Rake won't run #88

SamStuckey opened this issue Dec 6, 2015 · 2 comments
Labels

Comments

@SamStuckey
Copy link

I'm very new to ruby and programing in general, forgive my ignorance. I'm trying to do a simple debugging exercise and am encountering an error that I can't make heads or tails of. When I try and run rake in the directory I get an error message about locating rspec?

(in /Users/Sam/Documents/learn_ruby-master)
rake aborted!
Gem::LoadError: Could not find 'rspec' (~> 2) - did find: [rspec-3.4.0]
Checked in 'GEM_PATH=/Users/Sam/.gem/ruby/2.2.0:/Users/Sam/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0', execute `gem env` for more information
/Users/Sam/Documents/learn_ruby-master/Rakefile:2:in `<top (required)>'
(See full trace by running task with --trace)
Samuels-MacBook-Air:00_hello Sam$ 

is there something I need to install or configure that I haven't?

@drbrain
Copy link
Member

drbrain commented Dec 6, 2015

Please file a bug report against learn_ruby because it doesn't say you need to install rspec 2 instead of the latest. In particular, [this instruction is wrong]((https://github.com/alexch/learn_ruby/blob/master/index.html#L51).

Run: gem install rspec -v '~> 2'to install the latest 2.x version of rspec (per this line of your error: Gem::LoadError: Could not find 'rspec' (~> 2) - did find: [rspec-3.4.0]).

@drbrain
Copy link
Member

drbrain commented Dec 6, 2015

Oh, this isn't a rake issue, so I will close it.

@drbrain drbrain closed this as completed Dec 6, 2015
@drbrain drbrain added the invalid label Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants