- Macbook Pro (Not M series)
- Shell is zsh
- Homebrew properly installed
- Document date: 2022.12.08
Run the following command
$ bundle exec jekyll serve
Ruby version 3.1.3
- Install
ruby-install
$ brew install ruby-install
If ruby-install
has been installed previously, force link
$ brew link --overwrite ruby-install
- Install
ruby
$ ruby-install ruby
To see which ruby
version is supported, run
$ ruby-install
- Install
chruby
$ brew install chruby
- Setup
chruby
Add following lines to ~/.zshrc
source /usr/local/opt/chruby/share/chruby/chruby.sh
source /usr/local/opt/chruby/share/chruby/auto.sh
chruby 3.1.3
Jekyll version 4.3.1.
Run which gem
to make sure you actually use the correct gem
and ruby
.
- Install
jekyll
,github-pages
, andbundle
$ gem install jekyll
$ gem install github-pages
$ gem install bundle
- Add
webrick
tobundle
$ bundle add webrick
- Install gems in the Gemfile
If there is a Gemfile.lock
in the current directory, delete it, then run
$ bundle install