2014-06-21 2 views
0

안녕하세요, 저는이 프로그래밍을 처음 접했습니다. Odin 프로젝트를 통해 배우려고합니다. 그들은 내 커맨드 라인에서 '레이크 (rake)'명령으로 테스트를 수행하게했습니다. 나는 루비 2.1.2 버전과 rspec을 설치했다. 어쨌든 'rake'명령을 실행하려고하면이 오류가 발생합니다.Ruby 명령 줄 오류

Joel-Prestons-MacBook-Air-4:00_hello joelpreston$ rake 
(in /Users/joelpreston/learnRuby/learn_ruby) 
rake aborted! 
Gem::LoadError: can't activate rspec (~> 2), already activated rspec-3.0.0. Make sure all dependencies are added to Gemfile. 
/Users/joelpreston/.rvm/gems/[email protected]/gems/bundler-1.6.2/lib/bundler/rubygems_integration.rb:262:in `block in replace_gem' 
/Users/joelpreston/learnRuby/learn_ruby/Rakefile:2:in `<top (required)>' 
/Users/joelpreston/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval' 
/Users/joelpreston/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>' 
(See full trace by running task with --trace) 
Joel-Prestons-MacBook-Air-4:00_hello joelpreston$ 

누구든지 레이크를 실행하려면 어떻게해야합니까? 미리 감사드립니다. 조엘

답변

0

나는이 같은 문제가 있었다.

rspec 버전 3.0.0 미만을 설치했습니다.

sudo gem install -v '< 3.0.0' rspec 

저는 이것이 장기적인 해결책인지는 확실하지 않지만 저에게는 효과적입니다.

나는 여기에 제이슨 Virissimo에 의해 게시물에 그것을 발견 : Rake aborted: could not find rspec