sudo apt-get install ruby-full build-essential zlib1g-dev
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
gem install bundler
Wenn rbenv und ruby-build nicht vorhanden sind. Pakete über AUR im package manager installieren.
sudo pacman -Syu
sudo pacman -S rbenv ruby-build
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bashrc
source ~/.bashrc
Ruby Version für GitHub Pages installieren:
rbenv install 2.7.4
rbenv global 2.7.4
gem install bundler -v 2.4.22
gem install json
Navigate to the project and install dependencies.
bundle install
bundle exec jekyll serve