Install ruby and How to serve - github 블로그 포스팅 팁

less than 1 minute read

1. Ruby & Jekyll install in Ubuntu

$ sudo apt-get update
$ sudo apt-get install ruby ruby-dev make build-essential

setting enviroment path

$ sudo gedit ~/.bashrc

export GEM_HOME=$HOME/gems
export PATH=$HOME/gems/bin:$PATH

$ source ~/.bashrc

and install jekyll , bundler

$ gem install jekyll bundler

$ bundle install
$ bundle exec jekyll serve

2. Trouble Shooting

  • When nokogiri doesn’t install

    $ snap install libxslt $ sudo apt-get install libxml2 libxml2-dev libxslt1-dev

    $ bundle install

  • ‘load’ : cannot load such file

    $ gem update –system $ gem pristine bundler

  • 오류(error?) 발생시

    chcp 65001 실행후

    bundle exec jekyll serve

3. Reference

Jekyll 블로그 시작하기

Categories:

Updated:

Leave a comment