我有:ruby 1.8.7,gem 2.0.3和rails 2.3.5
每当我为我需要调试的项目运行rake时,它会给我以下错误。
unknown0026bb1748b0:00_hello zed $ rake (在/ Users / zedpisec / RUBY / learn_ruby中) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby:没有这样的文件或目录 - rspec(LoadError) 耙子流产了! /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S rspec /Users/zed/RUBY/learn_ruby/00_hello/hello_spec.rb -I / Users / zed / RUBY / learn_ruby / 00_hello - I / Users / zed / RUBY / learn_ruby / 00_hello / solution -f documentation -r ./rspec_config失败
我的问题是:
我该怎么解释这个?我非常想知道计算机告诉我的是什么,以便我相应地解决这个问题。
练习要求我修复源代码的错误,但根据说明,这不是我应该得到的错误
我应该注意哪些具体细节?这是我跑--trace
**调用默认值(first_time) **调用规范(first_time) **执行规范 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby:没有这样的文件或目录 - rspec(LoadError) 耙子流产了! /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S rspec /Users/zed/RUBY/learn_ruby/00_hello/hello_spec.rb -I / Users / zed / RUBY / learn_ruby / 00_hello - I / Users / zed / RUBY / learn_ruby / 00_hello / solution -f documentation -r ./rspec_config失败 /Users/zed/.gem/ruby/1.8/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:156:in
run_task' /Users/zed/.gem/ruby/1.8/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:124:in
initialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:1112:inverbose' /Users/zed/.gem/ruby/1.8/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:122:in
发送' /Users/zed/.gem/ruby/1.8/gems/rspec-core-2.13.1/lib/rspec/core/rake_task.rb:122:ininitialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:636:in
call' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:636:inexecute' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:631:in
每个' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:631:inexecute' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:597:in
invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:590:in
invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:607:ininvoke_prerequisites' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:604:in
each' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:604:ininvoke_prerequisites' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:596:in
invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:590:in
invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:583:ininvoke' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2051:in
invoke_task' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2029:intop_level' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2029:in
each' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2029:intop_level' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2068:in
standard_exception_handling' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2023:intop_level' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2001:in
run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:2068:instandard_exception_handling' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rake.rb:1998:in
run' 的/ usr /斌/耙:31
我的猜测是我没有安装或需要更新的东西。无论如何,任何指向正确方向的线索或想法都会非常感激。我很抱歉,如果这个问题最终变得非常简单,我对这件事情不熟悉,并且正在努力学习我的方法。
我试着寻找线索,但无济于事,没有解决我的具体问题。我尝试了一些解决方案,提供给有类似问题的人,但没有给我任何结果。
帮助我obi wan kenobi,你是我唯一的希望。