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:in
require'", "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:in
require'", "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:in
require'", "d:/mydoc/scripts/check.rb:7:in `'"]
i have tried require_relative , have installed gem.
Comments
Post a Comment