asdf-ruby icon indicating copy to clipboard operation
asdf-ruby copied to clipboard

Missing dependencies while building ruby-3.4.3 on Ubuntu 24.04

Open damisul opened this issue 7 months ago • 1 comments

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.

damisul avatar Apr 27 '25 20:04 damisul

Probably duplicate of https://github.com/asdf-vm/asdf-ruby/issues/386

damisul avatar Apr 27 '25 20:04 damisul

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.

n-rodriguez avatar Jul 17 '25 21:07 n-rodriguez

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.

damisul avatar Jul 18 '25 08:07 damisul

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.

n-rodriguez avatar Jul 18 '25 09:07 n-rodriguez