Skip to content

Missing dependencies while building ruby-3.4.3 on Ubuntu 24.04 #450

Open

Description

@damisul

Just installed Ubuntu 24.04.2 LTS of a new desktop.

Installed asdf 0.16.7 using binary, added ruby plugi.

Tried to build ruby 3.4.3 and got several compilation errors due to missing dependencies:

  • zlib1g-dev
  • libffi-dev
  • libyaml-dev

After few iterations of trying to build, checking logs and installing missing dependencies I've finally got ruby installed, but I believe good version manager should install such dependencies automatically.

Activity

  1. damisul commented on Apr 27, 2025

    @damisul
    Author

    Probably duplicate of #386

  2. n-rodriguez commented on Jul 17, 2025

    @n-rodriguez
    Contributor

    Actually it's already document in Install section of the README : https://github.com/asdf-vm/asdf-ruby?tab=readme-ov-file#install

    Please make sure you have the required system dependencies installed before trying to install Ruby.

  3. damisul commented on Jul 18, 2025

    @damisul
    Author

    Yes, I've also found this later. But again, I believe it would be better if version manager handled it itself. For example rvm fetches all required dependencies automatically.

  4. n-rodriguez commented on Jul 18, 2025

    @n-rodriguez
    Contributor

    But again, I believe it would be better if version manager handled it itself. For example rvm fetches all required dependencies automatically.

    So I think it should be handled upper in the stack : at asdf level and not at plugin level.

  5. br-arruda commented on Jan 26, 2026

    @br-arruda

    I disagree that a plugin should handle automatic package installation because ASDF manages tools, not packages. The premise behind it is that installing tools won't change your system state, except for the tools added to the PATH.

    If plugins begin to change system state and packages they become more likely to introduce problems at system level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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