Skip to content

Precompiled rubydex fails on Debian based distros #977

Description

@domingo2000

Similar to #806 we are using the ruby:3.4-slim-bullseye image, that is based on Debian

Debian has glibc 2.31. But rubydex precompiled for ubuntu requires GLIBC_2.32 or greater.

So we are unable to install the gem in our CI system, blocking tapioca latest version upgrade.

(This is from tapioca verify that uses rubydex when loaded)

 /usr/local/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require': /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /usr/src/app/vendor/bundle/ruby/3.4.0/gems/rubydex-0.3.0-aarch64-linux/lib/rubydex/3.4/../librubydex_sys.so) - /usr/src/app/vendor/bundle/ruby/3.4.0/gems/rubydex-0.3.0-aarch64-linux/lib/rubydex/3.4/rubydex.so (LoadError)

I will try to replicate in a Dockerfile as the other issue

Reproduce

FROM ruby:3.4-slim-bullseye
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    libyaml-dev \
    git \
 && rm -rf /var/lib/apt/lists/*
RUN gem install rubydex -v 0.2.3
RUN ruby -e "require 'rubydex'"

Environment

  • Image (ruby + OS): ruby:3.4-slim-bullseye
  • Ruby: 3.4
  • Bundler: 4.0.15

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