创建'Rails应用程序'项目后的RubyMine错误

问题描述:

我已经下载并安装了“rubyinstaller-1.9.2-p180.exe”,然后我通过运行'ruby setup.rb'安装了gem(rubygems-1.6.2)和通过运行'gem install rails'来安装导轨。 做这一切后,我已经下载并安装的RubyMine 3.1创建'Rails应用程序'项目后的RubyMine错误

在RubyMine的我尝试创建新的“Rails应用程序”项目,在“Rails应用程序设置”对话框中,它显示了安装擦的Ruby解释器,轨之上版本说'3.0.5'。 Rails模板是空的。 '预先配置选定的数据库'未选中,并且“跳过测试:单元文件”未被选中。

点击确定后,它会在代码顶部创建一些文件,会出现一条消息:“一些必需的getms注意附:sqlite3" 的(我没问DB,那么为什么SQLite的?)反正我点击,在‘附加宝石’

后,我点击播放图标,并获得以下错误,请帮我解决。 !这个问题在此先感谢

------------------------------ 
C:\Ruby192\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Users/kobi/RubymineProjects/deded/script/rails server -b 127.0.0.1 -p 3000 -e development 
C:/Ruby192/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.3-x86-mingw32/lib/sqlite3.rb:6:in `require': no such file to load -- sqlite3/sqlite3_native (LoadError) 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.3-x86-mingw32/lib/sqlite3.rb:6:in `rescue in <top (required)>' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.3-x86-mingw32/lib/sqlite3.rb:2:in `<top (required)>' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in `require' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in `block (2 levels) in require' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in `each' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in `block in require' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in `each' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in `require' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler.rb:120:in `require' 
from C:/Users/kobi/RubymineProjects/deded/config/application.rb:7:in `<top (required)>' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.5/lib/rails/commands.rb:28:in `require' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.5/lib/rails/commands.rb:28:in `block in <top (required)>' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.5/lib/rails/commands.rb:27:in `tap' 
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.5/lib/rails/commands.rb:27:in `<top (required)>' 
from C:/Users/kobi/RubymineProjects/deded/script/rails:6:in `require' 
from C:/Users/kobi/RubymineProjects/deded/script/rails:6:in `<top (required)>' 
from -e:1:in `load' 
from -e:1:in `<main>' 

Process finished with exit code 1 

对于Ruby 1.9.2,RubyInstaller不支持除RubyInstaller附带的任何其他RubyGems版本。通过更新RubyGems,你会破坏你的Ruby安装。请将Ruby重新安装到干净的目录中,不要更新RubyGems。

此外,它看起来像您的PATH环境中缺少sqlite3.dll。 Download它并解压缩到RUBY_HOME \ bin或c:\ windows \ system32中。 Rails需要一些数据库,而sqlite是默认的。

某些本机gem扩展可能需要安装DevKit,如果您在安装此类宝石时遇到问题,请首先输入install DevKit

+0

谢谢。我重新安装了ruby,并且必须安装rails框架('gem install rails',否则RubyMine不会创建RoR项目。)并且具有相同的错误。然后下载并将sqlite dll放入路径后,它开始工作。如果ruby给出的错误更加清晰(比如'dll X is missing'),那将会更好。 – 2011-03-25 21:57:47

从控制台试试这个:

cd C:/users/kobi/rubymineprojects/deded 
bundle install 
+0

没有帮助,同样的错误。 (捆绑命令本身成功完成) – 2011-03-25 20:25:49