Skip to content

Windows installation has no binary for Ruby 2.4 #923

Description

@nyxnyx

Hi,
I have Ruby2.4 on windows 10. When I install mysql2 with gem it doesn't contain binary for 2.4. Even if I select to build one - there is no binary for 2.4
This results to following error while starting rails:
C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5-x64-mingw32/lib/mysql2/mysql2.rb:2:in `require': cannot load such file -- mysql2/2.4/mysql2 (LoadError) from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5-x64-mingw32/lib/mysql2/mysql2.rb:2:in `<top (required)>' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5-x64-mingw32/lib/mysql2.rb:31:in `require' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5-x64-mingw32/lib/mysql2.rb:31:in `<top (required)>' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:81:in `require' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:81:in `block (2 levels) in require' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:76:in `each' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:76:in `block in require' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:65:in `each' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/runtime.rb:65:in `require' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler.rb:114:in `require' from D:/Projects/sverige/config/application.rb:7:in `<top (required)>' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in `require' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:133:in `block in perform' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `tap' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `perform' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/command/base.rb:63:in `perform' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/command.rb:44:in `invoke' from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-5.1.4/lib/rails/commands.rb:16:in `<top (required)>' from bin/rails:9:in `require' from bin/rails:9:in `<main>'

Contents of gem installation directory:
``
C:\Ruby24-x64\lib\ruby\gems\2.4.0\gems\mysql2-0.4.5-x64-mingw32\lib\mysql2>dir
Volume in drive C has no label.
Volume Serial Number is 1848-D1E1

Directory of C:\Ruby24-x64\lib\ruby\gems\2.4.0\gems\mysql2-0.4.5-x64-mingw32\lib\mysql2

2017-12-07 16:52

.
2017-12-07 16:52 ..
2017-12-07 16:34 2.0
2017-12-07 16:34 2.1
2017-12-07 16:34 2.2
2017-12-07 16:34 2.3
2017-12-07 16:34 5 862 client.rb
2017-12-07 16:34 121 console.rb
2017-12-07 16:34 1 132 em.rb
2017-12-07 16:34 2 346 error.rb
2017-12-07 16:34 53 field.rb
2017-12-07 16:34 58 mysql2.rb
2017-12-07 16:34 62 result.rb
2017-12-07 16:34 335 statement.rb
2017-12-07 16:34 38 version.rb
9 File(s) 10 007 bytes
6 Dir(s) 50 598 948 864 bytes free

C:\Ruby24-x64\lib\ruby\gems\2.4.0\gems\mysql2-0.4.5-x64-mingw32\lib\mysql2>
``

There is now 2.4 directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions