Instale o rbenv
. Isso vai facilitar sua vida em termos de lidar com versões.
Link
# Clonando a aplicação
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
# Adicionando ao PATH (troque para o seu shell)
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
# Iniciando instalação
~/.rbenv/bin/rbenv init
# Reiniciando shell
exec $SHELL
# Checkando se está OK
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
# Instalando scrip para usar rbenv instal
mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
Agora instale a versão Ruby do projeto.
rbenv install 2.7.0
E por fim, o bundler
gem install bundler
Na pasta do repositório, execute
bundle install
bundle exec jekyll serve
Pronto, agora é só acessar localhost:4000