Install Jekyll on OpenSuse
-
Install required dependencies (for example, nokogiri):
Replace the version
libgdbm4with whatever version your release provides.sudo zypper in autoconf libopenssl-devel libyaml-devel readline-devel libxslt-devel ncurses-devel libffi-devel zlib-devel gdbm-devel libgdbm4 - Clone rbenv to your home folder:
~/.rbenvgit clone https://github.com/rbenv/rbenv.git ~/.rbenv - Add
~/.rbenv/binto your$PATHso that you can use rbenv’s command-line utility. Also, adding~/.rbenv/bin/rbenv initto your~/.bashrcfile will let you load rbenv automatically.echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc - Source your
.bashrcto load config changes.source ~/.bashrc - Type
rbenvto ensure it’s working:rbenv - To use the
rbenv installcommand, which simplifies the installation process for new versions of Ruby, you should installruby-build, which we will install as a plugin for rbenv through git:git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build - List available Ruby versions for installation:
rbenv install -lThis will output a long list of Ruby versions; pick one to install, for example,
2.5.0.Note: Do not use
sudoas it is not required from your own home directory.rbenv install 2.5.0Wait for the installation to finish.
- Set the new installation of Ruby as your global Ruby version.
rbenv global 2.5.0 - Check your reported Ruby version:
ruby -v - Install Jekyll.
gem install jekyll
Source:
GitHub Jekyll Issue #6852
Enjoy Reading This Article?
Here are some more articles you might like to read next: