rubygems - dbd-ODBC ruby gem require cannot require -


i have script in ruby, it's simple checking requires work. i've got problem 1 gem: dbd/odbc. when run script error message. version of ruby 2.3. here script:

begin  require "dbi" require 'dbd/odbc'    puts 'this run.' rescue loaderror => e   puts "this not run #{e.backtrace.inspect}"  end 

here output error:

this not run ["c:/ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/ker nel_require.rb:55:in require'", "c:/ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygem s/core_ext/kernel_require.rb:55:inrequire'", "c:/ruby23-x64/lib/ruby/gems/2.3. 0/gems/dbd-odbc-0.2.5/lib/dbd/odbc.rb:34:in <top (required)>'", "c:/ruby23-x64/ lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133:inrequire'", "c:/ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:133: in rescue in require'", "c:/ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_e xt/kernel_require.rb:40:inrequire'", "d:/mydoc/scripts/check.rb:7:in `'"]

i have tried require_relative , have installed gem.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -