797 B
797 B
title | permalink |
---|---|
Jekyll on Ubuntu | /docs/installation/ubuntu/ |
Install dependencies
Install Ruby and other [prerequisites]({{ '/docs/installation/#requirements' | relative_url }}):
sudo apt-get install ruby-full build-essential zlib1g-dev
Avoid installing Ruby 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
Finally, install Jekyll and Bundler:
gem install jekyll bundler
That's it! You're ready to start using Jekyll.