DEV Community

Cover image for Install Ruby 3.2.0 + YJIT with ASDF
David Paluy
David Paluy

Posted on

12

Install Ruby 3.2.0 + YJIT with ASDF

This is a simple guide to install new Ruby 3.2.0 with YJIT Compiler.

Note: if you want to read more about JIT Compilers, read this overview

First, you need to have asdf ready on your Mac. I migrated to this tool and it manages all my languages, like: ruby, python, node, rust, etc.

I recommend updating the asdf to the latest version:
brew upgrade asdf

In order to build ruby with YJIT, you need to install rustc.



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


Enter fullscreen mode Exit fullscreen mode

Verify it is installed correctly: rustc --version

Now you are ready to install Ruby:



export RUBY_CONFIGURE_OPTS=--enable-yjit
asdf install ruby 3.2.0
asdf global ruby 3.2.0


Enter fullscreen mode Exit fullscreen mode

Check your ruby: ruby --yjit -v

And you should see YJIT enabled.

Ruby with YJIT ready

Enjoy your speed!

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (3)

Collapse
 
yaroslavrick profile image
Yaroslav Yenkala

Thank you!

Collapse
 
pavlovskiiy profile image
MYevhenii

Thx🔥

Collapse
 
pavlovskiiy profile image
MYevhenii

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay