2013-05-30 47 views
4

我有試圖讓TinyTDS使用Ruby 2.0.0工作在Windows 7TinyTDS是否支持Ruby 2.0.0?

當我運行一個rails c(或從irbrequire tiny_tds)真正的麻煩,我得到如下:

D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- tiny_tds/tiny_tds (LoadError) 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/tiny_tds-0.5.1-x86-mingw32/lib/tiny_tds.rb:16:in `rescue in <top (required)>' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/tiny_tds-0.5.1-x86-mingw32/lib/tiny_tds.rb:12:in `<top (required)>' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:132:in `require' 
      from S:/code/user/app/ruby2_test/config/application.rb:7:in `<top (required)>' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:39:in `require' 
      from D:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:39:in `<top (required)>' 
      from script/rails:6:in `require' 
      from script/rails:6:in `<main>' 

我試圖安裝最新版本的寶石:

gem install tiny_tds --pre

而且裏面看:

D:\Ruby\Ruby200\lib\ruby\gems\2.0.0\gems\tiny_tds-0.6.0.rc1-x86-mingw32\lib\tiny_tds

我可以看有沒有2.0目錄,這使我相信2.0版不支持。不過,我可以在TinyTDS github或任何其他網站上看到關於此問題的提及。

那麼,我錯過了什麼,或者TinyTDS目前只是不適用於Ruby 2.0?

+0

什麼OS的答案是你嗎? – David

+0

Windows 7,x64。對不起會更新問題 – rwb

+1

你可以嘗試卸載'gem uninstall tiny_tds',然後用'gem install tiny_tds --platform = ruby​​'重新安裝' – David

回答