Skip to content

Site Install Locally

redtide edited this page Jun 16, 2021 · 1 revision

At the time of writing, my method to install Jekyll is to keep the same versions installed on GitHub, to avoid past compatibility issues. So if possible, it would be good to install a Ruby version manager like rbenv (recommended) or RVM. The following guide is about RVM, which is the one I installed and still in use on my Linux environment.

However some macOS users would prefer to use the current installed version in their system. On macOS BigSur 11.0.1 the installed Ruby version is 2.6.3p62, you can install an updated version via brew, together with Yarn node modules package manager.

There is no Windows advices yet, so if you get a working setup on this platform let me know, for now I can only point to the official documentation.

Install RVM

curl -L get.rvm.io > rvm-install
bash < ./rvm-install

For bash completion add to .bashrc:

# RVM bash completion
[[ -r "$HOME/.rvm/scripts/completion" ]] && source "$HOME/.rvm/scripts/completion"

If necessary in $HOME/.rvm/scripts/completion replace line 22 with:

source "$HOME/.rvm/scripts/extras/completion.bash"

Set the terminal as login terminal in preferences.

In VSCode add to settings.json:

"terminal.integrated.shellArgs.linux": [ "-l" ]

Install Ruby

$ rvm install 2.7.1
$ rvm use 2.7.1 --default

Source: https://wiki.archlinux.org/index.php/RVM