Getting this error when trying to install jekyll on Windows?
gem install jekyll
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
Here is a solution that worked for me:
1. Download Ruby 2.3 (not going to work with higher version) according to your OS architecture 32 or 64 bit.
https://rubyinstaller.org/downloads/
2. Run the installer to install ruby. After the installer finishes you will have something like this: C:\Ruby23-x64
You can also check the installation by opening a cammand prompt window and typing:
ruby -v
3. From the same site download DevKit.
4. Double-click on the DevKit archive and extract it to something like C:\DevKit.
5. Open a command prompt and navigate to C:\DevKit.
6. Check your C:\DevKit\config.yml file contains reference to your ruby installation.
7. Run ruby dk.rb init followed by ruby dk.rb install
8. Test DevKit installation by running:
gem install json --platform=ruby. JSON
should install correctly and you should see with native extensions in the screen messages.
Next run
ruby -rubygems -e "require 'json'; puts JSON.load('[42]').inspect"
to confirm that the json gem is working
9. Install jekyll:
gem install jekyll
10. test jekyll installation:
jekyll -v