CHOI BOO 블로그

[Jekyll] mac jekyll Failed to build gem native extension. 해결방법 (with zshrc)

2021.03.18
Jekyll

Error

루비 설정이 잘못 되어서 그렇습니다.

# failed bundle exec jekyll serve --future -> bundle install # failed bundle install ERROR Make sure that `gem install http_parser.rb -v '0.6.0' --source 'https://rubygems.org/'` succeeds before bundling. # failed gem install http_parser.rb -v '0.6.0' --source 'https://rubygems.org/' ERROR Failed to build gem native extension.

Solution

brew install ruby echo 'eval "$(rbenv init -)"' >> ~/.zshrc source ~/.zshrc curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash # cd my_project bundle install bundle exec jekyll serve --future

Link: pjs21s.github.io/rbenv-shims-in-path-not-found

© CHOI BOO 2021