1

我(完全)是 ROR 的新手,并且有一个需要维护和升级的应用程序。我有源代码,正在尝试使用db:migraterake 命令构建数据库。我已经开始使用 Aptana Studio 进行开发。当我运行时dg:migrate,出现以下错误:

rake db:migrate
(in G:/Projects/.../.../trunk)
MissingSourceFile no such file to load -- rcov/rcovtask
WARNING: rcov tests won't work
Looking for release_type overrides ...
=> Loading G:/Projects/.../.../trunk/config/release_type_config.rb
DEPRECATION WARNING: ActiveRecord::Base.allow_concurrency=has been deprecated and
no longer has any effect. Please remove all references to allow_concurrency=.. 
(called from allow_concurrency= at D:/Ruby/lib/ruby/gems/1.8/gems/
activerecord-2.3.5/lib/active_record/connection_adapters/abstract/
connection_specification.rb:98)
DEPRECATION WARNING: ActiveRecord::Base.verification_timeout= has been deprecated
and no longer has any effect. Please remove all references to 
verification_timeout=.. (called from verification_timeout= at    
D:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/
connection_adapters/abstract/connection_specification.rb:108)
rake aborted!
no such file to load -- hpricot

我也安装了 hpricot gem(0.8 版)。

对此有何补救措施?

4

3 回答 3

3

安装 rcov gem:

gem install relevance-rcov --source http://gems.github.com
于 2010-02-09T07:10:09.080 回答
1

也许您的系统找不到宝石。这可能是路径问题,有关详细信息,请参阅此帖子

于 2010-02-09T06:53:35.930 回答
1

最显着的错误是

rake aborted!
no such file to load -- hpricot

你需要杏。您可以在命令行上运行以下命令安装它

gem install hpricot
于 2010-02-09T08:11:11.203 回答