Skip to content

Instantly share code, notes, and snippets.

@knightq
Last active October 3, 2024 09:54
Show Gist options
  • Save knightq/d4d1bd63700131de593889d017af4f2d to your computer and use it in GitHub Desktop.
Save knightq/d4d1bd63700131de593889d017af4f2d to your computer and use it in GitHub Desktop.
Installing Ruby 3.3.5 with YJIT on Macbook with ASDF

Installing Ruby 3.3.5 with YJIT on Macbook with ASDF

Install ASDF

Ensure you have homebrew installed. See https://brew.sh

brew install coreutils curl git libyaml asdf

Add the ZSH plugin

Add the following to ~/.zshrc

plugins=(asdf)

Install Rust

If you want YJIT in Ruby, you'll need to install Rust.

asdf plugin add rust
asdf install rust latest
asdf global rust latest

Install Ruby

asdf plugin add ruby
export RUBY_CONFIGURE_OPTS=--enable-yjit
asdf install ruby 3.3.5

# Optionally
asdf global ruby 3.3.5

Verify installation with:

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