Open KB1RD opened 7 months ago
For the record, I got the same error on MacOS Sonoma and installing libyaml via brew install libyaml
also solved the issue.
If anyone is trying to install Ruby on Ubuntu 22.x, just don't install version 3.31.
sudo apt install libyaml-dev
These are the libs I had to install to make asdf install ruby latest
work:
sudo apt-get install libz-dev libssl-dev libffi-dev libyaml-dev
Using instructions from https://asdf-vm.com/guide/getting-started.html. Then, I ran
asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby
. Finally, I ranasdf install ruby latest
, which failed as seen below:Logs from
psych
configure:Workaround is to install
libyaml-dev
on Ubuntu.The provided error message should either be more descriptive (since I had to dig through log files to find this), or there should be something in the documentation.