# Build error at Setup Ruby, need help

**URL:** <https://talk.jekyllrb.com/t/build-error-at-setup-ruby-need-help/8791>\
**Category:** Help\
**Created:** [December 27, 2023, 4:43am UTC](https://talk.jekyllrb.com/t/build-error-at-setup-ruby-need-help/8791 "2023-12-27T04:43:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RadiantHero6](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/radianthero6/32/5532_2.png) [@RadiantHero6](https://talk.jekyllrb.com/u/RadiantHero6)\
**Post date:** [December 27, 2023, 4:43am UTC](https://talk.jekyllrb.com/t/build-error-at-setup-ruby-need-help/8791/1 "2023-12-27T04:43:25Z")

</div>

I haven’t used my website in a while due to work, but I’ve updated my Arch Linux install since then, so I’m certain Ruby got updated with it. When building, I get a

`Error: The process '/opt/hostedtoolcache/Ruby/3.3.0/x64/bin/bundle' failed with exit code 5`

I’ve tried downgrading to 3.0.2 with the AUR downgrader, however that doesn’t seem to be working either, as seen here but I’m not sure if that’s a Windows user or not.

> [@Build error at "Setup Ruby" stage of Build and Deploy on Actions](https://talk.jekyllrb.com/t/build-error-at-setup-ruby-stage-of-build-and-deploy-on-actions/8782/5):
>
> I’ve been experiencing the exact same issue since yesterday. My workflow [https://github.com/YubinShin/YubinShin.github.io/actions/runs/7334287115/job/19970779397](https://github.com/YubinShin/YubinShin.github.io/actions/runs/7334287115/job/19970779397) My local machine ruby, gem version root@yubin:~/YubinShin.github.io# ruby --version ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86\_64-linux] root@yubin:~/YubinShin.github.io# gem --version 3.4.20

[Fixing ruby · radianthero/radianthero.github.io@58b9697 · GitHub](https://github.com/radianthero/radianthero.github.io/actions/runs/7335070095/job/19972553079) here’s the github page to the issue, hoping someone can help out.

---

<div class="post-metadata">

**Author:** ![YubinShin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yubinshin/32/5685_2.png) [@YubinShin](https://talk.jekyllrb.com/u/YubinShin)\
**Post date:** [December 27, 2023, 10:51am UTC](https://talk.jekyllrb.com/t/build-error-at-setup-ruby-need-help/8791/2 "2023-12-27T10:51:41Z")

</div>

Hi RadiantHero6,

I’ve found a solution to the problem we were facing.

I **updated** the Ruby version to 3.2 in my github actions **workflow** files, and it worked for me.

You might want to give it a try.

Here’s the commit where I made the changes for your reference: [https://github.com/YubinShin/YubinShin.github.io/commit/05841eca174f73c03c0e4362aa31f07b5fef8435](https://github.com/YubinShin/YubinShin.github.io/commit/05841eca174f73c03c0e4362aa31f07b5fef8435)

You’ll need to update this specific line in your workflow file: [https://github.com/radianthero/radianthero.github.io/blob/main/.github/workflows/pages-deploy.yml#L45](https://github.com/radianthero/radianthero.github.io/blob/main/.github/workflows/pages-deploy.yml#L45)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [December 27, 2023, 5:01pm UTC](https://talk.jekyllrb.com/t/build-error-at-setup-ruby-need-help/8791/3 "2023-12-27T17:01:45Z")

</div>

can you post the full out put of the console including the command you use?

---

<div class="post-metadata">

**Author:** ![RadiantHero6](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/radianthero6/32/5532_2.png) [@RadiantHero6](https://talk.jekyllrb.com/u/RadiantHero6)\
**Post date:** [December 27, 2023, 10:29pm UTC](https://talk.jekyllrb.com/t/build-error-at-setup-ruby-need-help/8791/5 "2023-12-27T22:29:49Z")

</div>

Solution here: in pages-deploy.yml, change `ruby-version: 3.0` to `ruby-version: 3.2`

` - name: Setup Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 3.2 bundler-cache: true`

Working with chirpy, maybe have to update token, I did.

---

<div class="post-metadata">

**Author:** ![bewuethr](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/bewuethr/32/4611_2.png) [@bewuethr](https://talk.jekyllrb.com/u/bewuethr)\
**Post date:** [January 1, 2024, 11:12pm UTC](https://talk.jekyllrb.com/t/build-error-at-setup-ruby-need-help/8791/6 "2024-01-01T23:12:52Z")

</div>

There have been a few issues with using Ruby 3.3.0 on GitHub Pages, but all have been fixed:

- The setup-ruby action didn’t support Ruby 3.3.0 until December 25, but [release v1.163.0](https://github.com/ruby/setup-ruby/releases/tag/v1.163.0) added support for it
- Jekyll itself wasn’t able to build on Ruby 3.3.0, but [v4.3.3](https://github.com/jekyll/jekyll/releases/tag/v4.3.3) and [v3.9.4](https://github.com/jekyll/jekyll/releases/tag/v3.9.4) fixed those issues
- A few Gems are slated to be removed from the standard library in Ruby 3.4.0, which results in build warnings. If a site relies on them, they have to be added to the gemspec of the plugin, or the Gemfile of the importing site (at least base64, bigdecimal, and csv)

But, overall, it’s definitely possible to use Jekyll on GitHub Pages with Ruby 3.3.0.
