bundle install
bundle exec jekyll serve
bundle install
failed due to permission denied
Solution
According to bundler documentation, a $BUNDLE_PATH or $GEM_HOME env variable can be set to make it the default writeable place.
export BUNDLE_PATH=~/.gems
bundle install
Then run the command as usual
bundle exec jekyll serve