Post

Installing Jekyll

jekyll-a blogging software

Installing Jekyll

install pre-requisites

  • install curl

    1
    
      sudo apt-get install curl
    
  • install nodejs

    (if error - “javascript runtime error”)

    1
    
      sudo apt-get install nodejs
    

install rvm & ruby

  • download signatures :

    1
    
      curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
    
  • install rvm (stable) :

    1
    
      curl -sSL https://get.rvm.io | bash -s stable
    
  • set rvm environment :

    1
    
      source $HOME/.rvm/scripts/rvm
    
  • install required packages for Ruby :

    gawk, libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, autoconf, libgmp-dev, libgdbm-dev, libncurses5-dev, automake, libtool, bison, libffi-dev

    1
    
      rvm requirements
    
  • install ruby (check latest version on https://www.ruby-lang.org/en/)

    1
    
      rvm install 2.3.1
    

    if error :-

    1
    
      RVM is not a function, selecting rubies with 'rvm use ...' will not work.
    

    answer :- console is not running as a login shell so no access to rvm function.

    • open terminal (ctrl + alt + t )
    • Edit -> Profile Preferences
    • select tab: Title and Command
    • check box Run command as a login shell
    • restart terminal
  • select rvm’s default version :

    1
    
      rvm use 2.3.1 --default
    

install Jekyll

1
gem install jekyll

check version

1
jekyll -version
This post is licensed under CC BY 4.0 by the author.