Skip to content

Conversation

yumetodo
Copy link
Contributor

@yumetodo yumetodo commented Jul 28, 2019

On pure msys2 mingw64 environment, The code like below will fail:

require 'ruby2d'
show
$ruby test.rb
Traceback (most recent call last):
        2: from test.rb:1:in `<main>'
        1: from C:/msys64/mingw64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/msys64/mingw64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- ruby2d (LoadError)
        4: from test.rb:1:in `<main>'
        3: from C:/msys64/mingw64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
        2: from C:/msys64/mingw64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
        1: from C:/msys64/mingw64/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
C:/msys64/mingw64/lib/ruby/gems/2.6.0/gems/ruby2d-0.9.2/lib/ruby2d.rb:25:in `<top (required)>': uninitialized constant RubyInstaller (NameError)

Because RUBY_PLATFORM =~ /mingw/ also match with pure msys2 mingw64 environment.

this bug was cause by d796435 .

ref:


note

Currently, rake test:native audio will fail due to another issue(usage of File.foreach). This PR doesn't resolve this issue( #167 ) .

RUBY_PLATFORM =~ /mingw/ also match with pure msys2 mingw64 env

this bug was cause by d796435

ref:
- ruby2d#91
- https://teratail.com/questions/202950
Base automatically changed from master to main February 9, 2021 05:54
@blacktm blacktm merged commit bd45d89 into ruby2d:main Feb 14, 2021
@yumetodo yumetodo deleted the fix/make_to_work_on_pure_msys2_mingw64_env branch February 15, 2021 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants