Skip to content

Platform gem (ruby_wasm-2.9.0-x86_64-linux etc.) is not yet available for Ruby 4.0 #636

@aim2bpg

Description

@aim2bpg

Summary

The platform-specific gem variants (e.g., ruby_wasm-2.9.0-x86_64-linux) have required_ruby_version: < 3.5.dev, >= 3.2. This prevents installation on Ruby 4.0.

The pure Ruby variant (ruby_wasm-2.9.0, 147 KB) installs and works on Ruby 4.0 but requires a Rust toolchain for compilation.

Environment

  • Ruby: 4.0.2 (host)
  • ruby_wasm: 2.9.0
  • Platform: x86_64-linux

Steps to reproduce

$ ruby -v
ruby 4.0.2

$ gem install ruby_wasm
ERROR: ruby_wasm-2.9.0-x86_64-linux requires ruby version < 3.5.dev, >= 3.2

Workaround

Use force_ruby_platform: true in Gemfile to force the pure Ruby variant:

gem "ruby_wasm", force_ruby_platform: true

This requires a Rust toolchain and adds build time for native extension compilation.

Note

#631 resolved an installation failure for the pure Ruby variant on Ruby 4.0. However, the platform gem (precompiled binary) is still not available for Ruby 4.0 as of v2.9.0.

Request

Please consider releasing platform gem variants for Ruby 4.0.

Related

#631 (pure Ruby variant install issue, now closed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions