- Apple Silicone machine (M2, Ventura 13.2.1)
- Homebrew-installed
asdf-vm
Installing latest Ruby via asdf
or ruby-build
failed with errors:
~ % asdf install ruby latest
To follow progress, use 'tail -f /var/folders/gy/rg1mbc9x6l52qwswzr5gbcjr0000gn/T/ruby-build.20230305121529.66351.log' or pass --verbose
Downloading ruby-3.2.1.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.1.tar.gz
Installing ruby-3.2.1...
ruby-build: using readline from homebrew
ruby-build: using gmp from homebrew
BUILD FAILED (macOS 13.2.1 using ruby-build 20230222)
Inspect or clean up the working tree at /var/folders/gy/rg1mbc9x6l52qwswzr5gbcjr0000gn/T/ruby-build.20230305121529.66351.kzJU8V
Results logged to /var/folders/gy/rg1mbc9x6l52qwswzr5gbcjr0000gn/T/ruby-build.20230305121529.66351.log
Last 10 log lines:
Check ext/psych/mkmf.log for more details.
*** Fix the problems, then remove these directories and try again if you want.
Generating RDoc documentation
/private/var/folders/gy/rg1mbc9x6l52qwswzr5gbcjr0000gn/T/ruby-build.20230305121529.66351.kzJU8V/ruby-3.2.1/lib/yaml.rb:3: warning: It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
uh-oh! RDoc had a problem:
cannot load such file -- psych
run with --debug for full backtrace
make: *** [rdoc] Error 1
Running
~ % brew reinstall libyaml
~ % gem install psych -- --with-libyaml-dir=$(brew --prefix libyaml)
~ % export RUBY_CONFIGURE_OPTS=--with-libyaml-dir=$(brew --prefix libyaml)
~ % asdf install ruby latest