What's New In Ruby 3.3 Discussion
And ruby-build itself now has 3.3 with ruby-build--20231225 (working with rbenv, not sure on asdf)
ASDF users use an env var to use the latest ruby-build:
ASDF_RUBY_BUILD_VERSION=master asdf install ruby 3.3.0
Will this affect how errors are displayed in Rails 7.2? Or it's too difficult to predict that since it hasn't been released yet?
Hi Chris, I tried -> RUBY_YJIT_ENABLE=1 ruby -v but I can't see the YJIT. Do I need to install it separately? I am using Mac M2 MacBookPro.
This might be because you don't have Rust installed.
If so, first uninstall your Ruby 3.3.0, then install Rust (https://www.rust-lang.org/tools/install), and then re-install Ruby 3.3.0.
Now RUBY_YJIT_ENABLE=1 ruby -v
should show you that it's using YJIT (this worked for me using rbenv)
ya, it works similar to yours, thanks for sharing that I need to install rust.
before install, need to uninstall
asdf uninstall ruby 3.3.0
note: do not install rust via asdf, it won't work for me.
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh // choose option 1 and enter; close Mac terminal and open again.
- rustc --version // make sure can see rustc version
- export RUBY_CONFIGURE_OPTS=--enable-yjit
- asdf install ruby 3.3.0
- asdf global ruby 3.3.0
- gem update --system
- gem install rails -v 7.1.2 // need to install this again
- ruby -v
- RUBY_YJIT_ENABLE=1 ruby -v
- rails -v
hope it helps others.