0

我在使用mysqlRuby 2.0.0 和 Windows 7 64 位时遇到问题...

我只有 :require 'mysql'在我的脚本中。

错误:

C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- mysql/mysql_api (LoadError)
    from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql-2.9.1-x86-mingw32/lib/mysql.rb:6:in `rescue in <top (required)>'
    from C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql-2.9.1-x86-mingw32/lib/mysql.rb:2:in `<top (required)>'
    from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
    from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
    from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
    from C:/5-recup_info/import.rb:4:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'

Sucessfully installed mysql-2.9.1-x86-mingw32但它不起作用。

这是使用infiniDB。

我找到了一个不起作用的解决方案......--platform=ruby在命令安装中。

谢谢你。

4

0 回答 0