11 June 2016

install pre-requisites

  • install curl

      sudo apt-get install curl
    
  • install nodejs

    (if error - “javascript runtime error”)

      sudo apt-get install nodejs
    

install rvm & ruby

  • download signatures :

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

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

      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

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

      rvm install 2.3.1
    

    if error :-

      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 :

      rvm use 2.3.1 --default
    

install Jekyll

gem install jekyll

check version

jekyll -version