我是(完全)新的ROR,并且有一个应用程序来维护和升级。我有源代码,正在尝试使用db:migrate
rake命令构建数据库。我已经开始使用Aptana Studio进行开发。当我运行dg:migrate
我收到以下错误:配置和运行Ruby-On-Rails迁移
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宝石也(0.8版本)。
这是什么补救措施?
@simone i' m运行'gem install hpricot'时出现此错误 - >'构建本机扩展。这可能需要一段时间... 错误:安装hpricot时出错: 错误:无法构建gem本机扩展。 ruby.exe extconf.rb 检查stdio.h中...是 创建的Makefile 使 的mingw32-的make.exe 的mingw32-的make.exe:***没有规则,使目标'ruby.h”,需要通过'fast_xs.o'。 S 顶部。 Gem文件将继续安装在D:/Ruby/lib/ruby/gems/1.8/gems/hpricot-0.8.2 中进行检查。 记录到D的结果:/Ruby/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/fast_xs/gem_m ake.out' – TheVillageIdiot 2010-02-09 08:33:56
这是因为您的计算机上没有编译器。你需要安装一个编译好的Gem。尝试指定您的环境'gem install hpricot --platform x86-mingw32' – 2010-02-09 08:57:18
没有运气@simone得到相同的错误。我已经安装了MinGW32,所以我有gcc等。如果需要其他任何东西,请让我知道,或者如果我可以从某处获得编译好的宝石。 – TheVillageIdiot 2010-02-09 09:17:30