问题描述
每当我运行 make 时,我都会收到这个未初始化的常量 RDoc::RDoc"错误
耙子 -T(在主要)耙子中止!未初始化的常量 RDoc::RDocC:/Ruby186/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'(通过使用 --trace 运行任务查看完整跟踪)
--编辑
运行 --trace 似乎唯一的非 rails 代码来自 rdoc_rails.由于其他人似乎能够很好地运行它,我假设我缺少一个 gem 或插件,但我无法弄清楚是哪个.
看起来我必须同时为 Rails (2.3.12) 应用这两种解决方案
- 安装 rake 0.9.2
- 安装 RDoc 2.4.3
gem install rdoc --version=2.4.3宝石更新耙
我发现了这个解决方案的副作用,它导致了另一个错误,比如 - Ruby on Rails 和 Rake 问题:未初始化的常量 Rake::DSL
When ever I run make I get this 'uninitialized constant RDoc::RDoc' error
--edit
Running --trace it seems the only non rails code is from rdoc_rails. Since other people seem to be able to run it fine I assume I am missing a gem or plugin but I can't figure out which.
It looks like i have to apply both solutions for Rails (2.3.12)
- Install rake 0.9.2
- Install RDoc 2.4.3
I found side-effect of this solution, It caused another error like - Ruby on Rails and Rake problems: uninitialized constant Rake::DSL
这篇关于耙未初始化的常量 RDoc::RDoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!