1

私は ROR を (完全に) 使用したことがなく、アプリケーションを維持およびアップグレードする必要があります。db:migrateソースコードがあり、 rake コマンドを使用してデータベースを構築しようとしています。開発に 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

最も重大なエラーは

rake aborted!
no such file to load -- hpricot

hpricotが必要です。コマンドラインで次のコマンドを実行してインストールできます

gem install hpricot
于 2010-02-09T08:11:11.203 に答える
1

システムが gem を見つけられない可能性があります。これはパスの問題である可能性があります。詳細については、この投稿を参照してください

于 2010-02-09T06:53:35.930 に答える