Skip to content

Instantly share code, notes, and snippets.

View brgix's full-sized avatar

Denis Bourgeois brgix

  • Québec QC CANADA
  • 14:32 (UTC -04:00)
View GitHub Profile
@brgix
brgix / OS_Ub_WSL2.md
Last active October 20, 2023 13:20
OpenStudio SDK on Ubuntu/WSL2

Ruby + OpenStudio SDK on WSL2

You have several options when setting up a Ruby-enabled, OpenStudio SDK environment on a Windows PC (e.g. virtualization vs emulation vs containerization), depending in large part on intended use (e.g. occasional measure development vs E+ workhorse). These instructions target energy modellers/developers wishing to interact with OpenStudio's API using Windows 11 WSL2, all the while maintaining compatibility with suggested Docker Desktop environments (keeping options open). The instructions here refer to SDK version 3.6.1 - adapt the instructions for older or newer versions!

A note on RubyInstaller for Windows

The favoured approach until 2020 was to rely on RubyInstaller for Windows, with the MSYS2 toolchain as a dev kit. OpenStudio SDK 3.6.1 [requires](https