# Ruby 3.2.2 YJIT not building

**URL:** <https://travis-ci.community/t/ruby-3-2-2-yjit-not-building/14087>\
**Category:** v2\
**Created:** [November 16, 2023, 4:05pm UTC](https://travis-ci.community/t/ruby-3-2-2-yjit-not-building/14087 "2023-11-16T16:05:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![howtotalktogirls](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/howtotalktogirls/32/8432_2.png) [@howtotalktogirls](https://travis-ci.community/u/howtotalktogirls)\
**Post date:** [November 16, 2023, 4:05pm UTC](https://travis-ci.community/t/ruby-3-2-2-yjit-not-building/14087/1 "2023-11-16T16:05:34Z")

</div>

Can’t give away all my .travis.yml, here are some key parts:

```yaml
language: ruby
dist: focal
rvm:
 - 3.2.2
env:
  - RUBY_CONFIGURE_OPTS="--enable-yjit"
  - RUBY_YJIT_ENABLE=1
  - RUBYOPT="--enable-yjit"
cache:
  npm: true
  bundler: true
sudo: false
services:
  - mysql
(etc)

```

I think you get the point here, again we are blocked from this particular build and need help asap. @montana?

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [November 16, 2023, 4:09pm UTC](https://travis-ci.community/t/ruby-3-2-2-yjit-not-building/14087/2 "2023-11-16T16:09:01Z")

</div>

Hi @howtotalktogirls,

Based on the tiny snippet you shared from your `.travis.yml` file, I can personally infer a good deal about the setup and workflow of your pipeline.

You need to disable the `3.2.2` binary of Ruby YJIT and set up your environment accordingly, add the following to your `.travis.yml` file:

```yaml
before_install:
  - curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
  - source "$HOME/.cargo/env"
  - rustc --version
  - RUBYCONFIGUREOPTS=--enable-yjit rvm reinstall 3.2.2 --disable-binary

```

This will enforce that the 3.2.2 version of YJIT is used without the pre-compiled binary, and it also sets up Rust with the stable toolchain.
