TinyTDS是否支持Ruby 2.0.0?

时间:2013-05-30 12:36:57

标签: ruby-on-rails ruby ruby-2.0 tiny-tds

我在尝试让TinyTDS在Windows 7上使用Ruby 2.0.0时遇到了麻烦。

当我运行rails c(或来自require tiny_tds的{​​{1}})时,我会收到以下信息:

irb

我已尝试安装最新版本的gem:

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不受支持。但是我在TinyTDS github或任何其他网站上都没有提到这个问题。

那么,我是否遗漏了某些东西,或者TinyTDS目前还没有使用Ruby 2.0?

1 个答案:

答案 0 :(得分:1)

从评论中复制答案,以便从“未答复”过滤器中删除此问题:

  

我认为这是您正在使用的另一个操作系统的问题   个人有同样的问题。如上所述,我相信这是一个   Windows的依赖性问题。请参阅MetaSkills的评论    - https://github.com/rails-sqlserver/tiny_tds/issues/110#issuecomment-15503928

〜每David

回答