Install Jekyll on OpenSuse

  1. Install required dependencies (for example, nokogiri):

    Replace the version libgdbm4 with 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
    
  2. Clone rbenv to your home folder: ~/.rbenv
    git clone https://github.com/rbenv/rbenv.git ~/.rbenv
    
  3. Add ~/.rbenv/bin to your $PATH so that you can use rbenv’s command-line utility. Also, adding ~/.rbenv/bin/rbenv init to your ~/.bashrc file will let you load rbenv automatically.
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
    echo 'eval "$(rbenv init -)"' >> ~/.bashrc
    
  4. Source your .bashrc to load config changes.
    source ~/.bashrc
    
  5. Type rbenv to ensure it’s working:
    rbenv
    
  6. To use the rbenv install command, which simplifies the installation process for new versions of Ruby, you should install ruby-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
    
  7. List available Ruby versions for installation:
    rbenv install -l
    

    This will output a long list of Ruby versions; pick one to install, for example, 2.5.0.

    Note: Do not use sudo as it is not required from your own home directory.

    rbenv install 2.5.0
    

    Wait for the installation to finish.

  8. Set the new installation of Ruby as your global Ruby version.
    rbenv global 2.5.0
    
  9. Check your reported Ruby version:
    ruby -v
    
  10. 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:

  • Satu EFI untuk Dua Operating System (Ubuntu 24.04 dan Windows 11) pada dua disk yang berbeda
  • Akses internet ITS melalui myITS-WiFi di Ubuntu
  • Menampilkan Label LaTeX di Matplotlib