-
Notifications
You must be signed in to change notification settings - Fork 647
Windows installation
NOTE: these steps refer to installing the Ruby version of Synthea on Windows -- the Ruby version of Synthea has been retired so these steps are not necessary to install the current Java implementation. These installation steps are preserved for posterity
Installing Synthea on a Windows system that hasn't had any Ruby on it before took a little more effort. These are all the steps I had to do on a Windows 7 X64 machine. An alternative is to use a Docker container.
Note: the 'cd', 'git' and other commands are to be run from a command line window (cmd.exe).
-
Download Ruby 2.3.1 (X64) from RubyInstaller.org (direct link)
- run the installer and install it to C:\Programs\Ruby23-x64\
-
Download the DevKit for Ruby 2.0 and above, for x64 from RubyInstaller.org (direct link)
- run the installer: it wil auto-unzip,
unzip it to C:\Programs\Ruby23-x64\DevKit - register the DevKit in your path with devkitvars.bat / .ps1, included in this directory
if you skip this, you wil get in trouble with the installation of bson, a part of step 5e.
- run the installer: it wil auto-unzip,
-
Log off & on again to reload the changed environment variables.
-
Install rubygems-update 2.6.7, primarily to get an updated certificate
-
otherwise you will encounter:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
-
we follow these instructions:
- Download the update
- cd c:\programs\ruby (or anywhere, gem is now in your path).
- gem install --local \rubygems-update-2.6.7
- update_rubygems --no-ri --no-rdoc
-
-
Now we can follow the instructions on the Synthea Git page
- cd c:\git
- git clone https://github.com/synthetichealth/synthea.git
- cd synthea
- gem install bundler
- bundle install
-
Check your hosts file:
- %SystemRoot%\System32\drivers\etc\hosts (you can open it in Notepad.exe)
- make sure the line '127.0.0.1 localhost' is present and uncommented.
- otherwise the Ruby MongoDB driver Moped / Mongoid won't find your Mongo service.