--- title: Jekyll on Windows permalink: /docs/installation/windows/ redirect_from: - /docs/windows/ --- While Windows is not an officially-supported platform, it can be used to run Jekyll with the proper tweaks. ## Installing Ruby and Jekyll ### Installation via RubyInstaller The easiest way to install Ruby and Jekyll is by using the [RubyInstaller](https://rubyinstaller.org/) for Windows. RubyInstaller is a self-contained Windows-based installer that includes the Ruby language, an execution environment, important documentation, and more. We only cover RubyInstaller-2.4 and newer here. Older versions need to [install the Devkit](https://github.com/oneclick/rubyinstaller/wiki/Development-Kit) manually. 1. Download and install a **Ruby+Devkit** version from [RubyInstaller Downloads](https://rubyinstaller.org/downloads/). Use default options for installation. 2. Run the `ridk install` step on the last stage of the installation wizard. This is needed for installing gems with native extensions. You can find additional information regarding this in the [RubyInstaller Documentation](https://github.com/oneclick/rubyinstaller2#using-the-installer-on-a-target-system) 3. Open a new command prompt window from the start menu, so that changes to the `PATH` environment variable becomes effective. Install Jekyll and Bundler using `gem install jekyll bundler` 4. Check if Jekyll has been installed properly: `jekyll -v` {: .note .info} You may receive an error when checking if Jekyll has been installed properly. Reboot your system and run `jekyll -v` again. If the error persists, please open a [RubyInstaller issue](https://github.com/oneclick/rubyinstaller2/issues/new). That's it, you're ready to use Jekyll! ### Installation via Bash on Windows 10 If you are using Windows 10 version 1607 or later, another option to run Jekyll is by [installing](https://msdn.microsoft.com/en-us/commandline/wsl/install_guide) the Windows Subsystem for Linux. {: .note .info} You must have [Windows Subsystem for Linux](https://msdn.microsoft.com/en-us/commandline/wsl/about) enabled. Make sure all your packages and repositories are up to date. Open a new Command Prompt or PowerShell window and type `bash`. Your terminal should now be a Bash instance. Next, update your repository lists and packages: ```sh sudo apt-get update -y && sudo apt-get upgrade -y ``` Next, install Ruby. To do this, let's use a repository from [BrightBox](https://www.brightbox.com/docs/ruby/ubuntu/), which hosts optimized versions of Ruby for Ubuntu. ```sh sudo apt-add-repository ppa:brightbox/ruby-ng sudo apt-get update sudo apt-get install ruby2.5 ruby2.5-dev build-essential dh-autoreconf ``` Next, update your Ruby gems: ```sh gem update ``` Install Jekyll: ```sh gem install jekyll bundler ``` {: .note .info} No `sudo` here. Check your Jekyll version: ```sh jekyll -v ``` That's it! You're ready to start using Jekyll. You can make sure time management is working properly by inspecting your `_posts` folder. You should see a markdown file with the current date in the filename.
If the `jekyll new` command prints the error "Your user account isn't allowed to install to the system RubyGems", see the "Running Jekyll as Non-Superuser" instructions in Troubleshooting.
Version 2.0 of the TZInfo library has introduced a change in how timezone offsets are calculated. This will result in incorrect date and time for your posts when the site is built with Jekyll 3.x on Windows.
We therefore recommend that you lock the Timezone library to version 1.2 and above by listing
gem 'tzinfo', '~> 1.2'
in your Gemfile
.