AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Update ruby jekyll10/31/2022 ![]() ![]() $ /bin/bash -c "$(curl -fsSL )" Install Ruby Refer the macOS installation guide at the Jekyll site Install Homebrew Need to install a different version of Ruby other than the pre-installed version. Your list is expected to look a bit different and that is fine. You may find some similar output or just /usr/bin/ruby if this is the first time you are trying to install Ruby. The shims listing are due to the earlier experiments with rbenv. usr/bin/ruby is the pre-installed system Ruby (which needs to be avoided).Ĭheck all the Ruby versions available in the system, the output may look as below: Ruby 2.6.3p62 ( revision 67580) [universal.arm64e-darwin20Ĭheck where Ruby is installed and pointing to the pre-installed system default Ruby that comes with macOS. ![]() Inspired by the confirmation on the Jekyll site that the native mode would work, focussed on this below approach to the native solution rather than focussing on the workaround.Ĭheck the default Ruby version that came with macOS (Big Sur 11.3.0 in this case).Could not get the workaround to work earlier, however at the end was happy that the workaround was not required and could install Jekyll in the native mode. While reading through various forums, there were recommendations to use Rosetta2 emulator and use the x86_64 bit emulation as a workaround.So as done below, you may give a try, however had to use rbenv to reinstall and set global default to Ruby 3.0.0. Note that Homebrew will install only the latest version of Ruby.Reverted back to Ruby 3.0.0 and that eventually helped to overcome the error received with 3.0.1. Did not work (did not further investigate the issue with 3.0.1). Tried the below steps with Ruby 3.0.1.If you are interested to read up on rbenv, here is the rbenv github repo. There are multiple version managers like rbenv, asdf, chruby and rvm and a very good documentation is available here, Change Ruby version on Mac. To set the system environment to use the desired Ruby version, a version manager need to be used.To install Ruby, package manager Homebrew may be used.Set the path to the new Ruby version (Ruby 3.0.0) such that Jekyll defaults to using this new Ruby version and not the system pre-installed Ruby. ![]()
0 Comments
Read More
Leave a Reply. |