docs/_docs/installation/freebsd.md
sudo pkg install ruby
Find the latest version and install it. (Replace ruby3x with whatever the latest version is.)
pkg search gems
sudo pkg install ruby3x-gems
Avoid installing RubyGems packages (called gems) as the root user. Instead,
set up a gem installation directory for your user account. The following
commands will add environment variables to your ~/.bashrc file to configure
the gem installation path:
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 jekyll bundler jekyll-sitemap
Both of these commands should return some output showing version number, etc.
ruby -v
jekyll -v
That's it! You're ready to start using Jekyll.