% rbenv install 3.3.5
==> Installing ruby-3.3.5...
-> ./configure "--prefix=$HOME/.rbenv/versions/3.3.5" --enable-shared --with-ext=openssl,psych,+
-> make -j 6
*** Following extensions are not compiled:
psych:
Could not be configured. It will not be installed.
Check /tmp/ruby-build.20241031144150.85725.GvsQfa/ruby-3.3.5/ext/psych/mkmf.log for more details.
BUILD FAILED (Pop 22.04 on x86_64 using ruby-build 20241030)
Resolved by installing an extra dependency sudo apt-get install libyaml-dev