Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs]: Jekyll on macOS - Step 2: "Install chruby and the latest Ruby with ruby-install" Fails Due to Outdated Ruby Version in Doc #9194

Closed
masaki9 opened this issue Nov 26, 2022 · 2 comments · Fixed by #9195
Labels
documentation frozen-due-to-age has-pull-request Somebody suggested a solution to fix this issue

Comments

@masaki9
Copy link
Contributor

masaki9 commented Nov 26, 2022

Motivation

I followed the Jekyll on macOS guide to install and run Jekyll for the first time earlier today. I restarted Terminal per the guide at the end of step 2 in the guide and got an error message saying "chruby: unknown Ruby: ruby-3.1.2" as shown below:

image

Suggestion

To fix it, "echo "chruby ruby-3.1.2" >> ~/.zshrc" should be "echo "chruby ruby-3.1.3" >> ~/.zshrc" in step 2 in the Jekyll on macOS guide.

When I updated the line in .zshrc, I was able to proceed and install Jekyll successfully.

image

@masaki9 masaki9 changed the title [Docs]: Step 2: "Install chruby and the latest Ruby with ruby-install" Fails Due to Outdated Ruby Version in Doc [Docs]: Jekyll on macOS - Step 2: "Install chruby and the latest Ruby with ruby-install" Fails Due to Outdated Ruby Version in Doc Nov 26, 2022
@jekyllbot jekyllbot added the has-pull-request Somebody suggested a solution to fix this issue label Nov 26, 2022
@postmodern
Copy link
Contributor

The problem is that the docs recommend running ruby-install ruby which will install the current stable version of ruby, which is currently 3.1.3 but soon will be 3.2.0. I recommend either ruby-install ruby-3.1 or ruby-install ruby-3.1.3. Or you could change ~/.zshrc to run chruby ruby-3.1 which will match any 3.1 version of ruby.

@masaki9
Copy link
Contributor Author

masaki9 commented Dec 30, 2022

Thanks @postmodern. I updated PR #9195 per your comment.

@jekyll jekyll locked and limited conversation to collaborators Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation frozen-due-to-age has-pull-request Somebody suggested a solution to fix this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants