问题描述
当我尝试做 require 'MysqL2'
时,它给了我本书中所有错误的信息......
错误返回信息:
irb(main):015:0> require 'MysqL2'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/MysqL2-0.4.10-x64-mingw32/lib/MysqL2.rb:23: warning: already initialized constant LoadLibrary
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/MysqL2-0.4.10-x64-mingw32/lib/MysqL2.rb:23: warning: prevIoUs deFinition of LoadLibrary was here
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/MysqL2-0.4.10-x64-mingw32/lib/MysqL2.rb:23: warning: already initialized constant LoadLibrary
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/MysqL2-0.4.10-x64-mingw32/lib/MysqL2.rb:23: warning: prevIoUs deFinition of LoadLibrary was here
Traceback (most recent call last):
14: from C:/Ruby26-x64/bin/irb.cmd:31:in `<main>'
13: from C:/Ruby26-x64/bin/irb.cmd:31:in `load'
12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
11: from (irb):15
10: from (irb):15:in `rescue in irb_binding'
9: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
8: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
7: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/MysqL2-0.4.10-x64-mingw32/lib/MysqL2.rb:31:in `<top (required)>'
5: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
4: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/MysqL2-0.4.10-x64-mingw32/lib/MysqL2/MysqL2.rb:2:in `<top (required)>'
2: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
1: from C:/Ruby26-x64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
LoadError (cannot load such file -- MysqL2/2.6/MysqL2)
请帮忙。我需要解决这个问题,我花了 20 多个小时试图找到解决方案。谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)