rake를 사용하는 데 문제가 있습니다. 나는 rspec에 대한 소개 인이 코스에서 일하고있다. 먼저 rspec을 설치하면 gem install rspec에 들어갑니다. 그런 다음Rake의 Rake Ruby가 작동하지 않습니다.
ruby 1.9.3p385 (2013-02-06) [i386-mingw32]
C:\Users\Edub>gem install rspec
Successfully installed rspec-2.13.0
1 gem installed
나는 다음 CD를 learn_ruby 및 cd 00_hello있는 코스 디렉토리를 입력 할 생각하지만 난 그런 00_hello
C:\Users\Edub>cd learn_ruby-master\learn_ruby-master\00_hello
\ CD learn_ruby 마스터 \의 learn_ruby 마스터를 입력하면 나의에만 작동 해요 나는 그것을 지시하는 것처럼 갈퀴를 사용하려고 노력한다. 그리고 나는 약간의 실수를 얻는다. 나는 그들이 무슨 뜻인지 정말로 모르겠다.
C:\Users\Edub\learn_ruby-master\learn_ruby-master\00_hello>rake
(in C:/Users/Edub/learn_ruby-master/learn_ruby-master)
You must use ANSICON 1.31 or later (http://adoxa.3eeweb.com/ansicon/) to use
col
our on Windows
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in
'require': cannot load such file -- hello (LoadError)
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_requir
e.rb:45:in `require'
from C:/Users/Edub/learn_ruby-master/learn_ruby-master/00_hello/hello_sp
ec.rb:116:in `<top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.0/lib/rspec/cor
e/configuration.rb:819:in `load'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.0/lib/rspec/cor
e/configuration.rb:819:in `block in load_spec_files'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.0/lib/rspec/cor
e/configuration.rb:819:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.0/lib/rspec/cor
e/configuration.rb:819:in `load_spec_files'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.0/lib/rspec/cor
e/command_line.rb:22:in `run'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.0/lib/rspec/cor
e/runner.rb:80:in `run'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.0/lib/rspec/cor
e/runner.rb:17:in `block in autorun'
rake aborted!
C:/Ruby193/bin/ruby.exe -S rspec C:/Users/Edub/learn_ruby-master/learn_ruby-
master/00_hello/hello_spec.rb -IC:/Users/Edub/learn_ruby-master/learn_ruby-
master/00_hello -IC:/Users/Edub/learn_ruby-master/learn_ruby-
master/00_hello/solution -fdocumentation -r ./rspec_config failed
Tasks: TOP => default => spec
(See full trace by running task with --trace)
과정은 다음 오류가 발생하도록되어 있고이 가정이 같다고 말한다 : 나는 텍스트에서하는 방법을 정의 할 필요가 있음을
no such file to load -- test-first-teaching/hello/hello (LoadError)
이 좋아, 그래서 그 다음 날에 지시 편집기라는 제목의 hello.rb 및 코드는 다음과 같아야합니다
def hello
"Hello!"
end
을 그래서 지침을 진행하고 숭고한 2 시간의 숭고한에서 2. 제목 프로그램이 모든 작업을 수행 ello.rb를 호출하고 메소드를 정의하십시오. 이것은 모든 오류를 수정하기로되어 있지만, 처음부터 내가했던 것과 똑같은 긴 오류가 있습니다.
누군가가 여기에 무슨 일이 일어나고 있는지, 레이크가 중단 된 이유를 알려주실 수 있습니까? 나는 여기에 저에게 말하려고하는 것이 무엇인지 모르겠습니다. 감사! 내가 충분히 구체적인 것이 아니라면 알려주세요.
나는 똑같은 문제가 있었고 그것을 알아 내려고 3 일 동안 벽에 머리를 대고 있었다. 내 문제는 내 폴더 중 하나의 경로에 대한 공간이었습니다. 그것은 그것을 고쳤다. 나는 당신이 겪었던 것과 똑같은 일을 천 번 반복했습니다. [여기에 내 Stackoverflow 질문 및 답변입니다.] (http://stackoverflow.com/questions/16285326/cant-get-rspec-to-work-require-cannot-load-such-file/16285986#16285986) – tomgalpin