Skip to content

Instantly share code, notes, and snippets.

@knightq
Last active October 3, 2024 09:54
Show Gist options
  • Select an option

  • Save knightq/d4d1bd63700131de593889d017af4f2d to your computer and use it in GitHub Desktop.

Select an option

Save knightq/d4d1bd63700131de593889d017af4f2d to your computer and use it in GitHub Desktop.

Revisions

  1. knightq renamed this gist Oct 3, 2024. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. knightq created this gist Oct 3, 2024.
    41 changes: 41 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    # Installing Ruby 3.3.5 with YJIT on Macbook with ASDF

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

    ```shell
    brew install coreutils curl git libyaml asdf
    ```

    ### Add the ZSH plugin

    Add the following to ~/.zshrc

    ```shell
    plugins=(asdf)
    ```

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

    ```shell
    asdf plugin add rust
    asdf install rust latest
    asdf global rust latest
    ```

    ### Install Ruby

    ```shell
    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:
    ```shell
    ruby -v --yjit
    ```