Back
Install Jekyll with gem using Ubuntu on Windows Subsystem for Linux
This took awhile to figure out and actually install jekyll. However, with this handy guide of the errors I had, it won’t take long for future installations.
What is needed:
sudo apt install ruby
sudo apt install build-essential
sudo apt install rubyx.y-dev
(x.y is the version of ruby you have which can be found with ruby -v)
Finally:
gem install jekyll
sudo apt install build-essential
(resolves the error: sh: make: not found)
Errors
To resolve the error:
- sh: make: not found
- Run:
sudo apt install build-essential
- Resource: Install gem gives “Failed to build gem native extension.”
- Run:
- Error while installing json gem ‘mkmf.rb can’t find header files for ruby’
- Run:
sudo apt install rubyx.y-dev
(x.y is the version of ruby you have which can be found with ruby -v) - Resource: Error while installing json gem ‘mkmf.rb can’t find header files for ruby’
- Run: