Running OpenStudio 3.0 on Linux
This post was going to be a question but, after troubleshooting for ~3 hours, I solved it but I still wanted to post it since I am pretty certain that this solution will save someone else time when they encounter this issue and search for posts like this.
I was upgrading my workflows that automatically test my OpenStudio SDK code on a remote Linux machine but I found a huge number of dependency issues when trying to use OpenStudio 3.0 on Ubuntu Xenial 16.04. From what I can tell, some of these issues seemed impossible to address with sudo update
commands. However, as soon as I switched to using Ubuntu Bionic 18.04, virtually all dependency issues vanished. There weren't even any issues with libwxgtk3.0-0
that Julien mentioned here.
Granted, all of my tests were using the SDK Ruby bindings directly and I didn't test the OpenStudio CLI or Application. But I have no reason to believe that these wouldn't work.
Long story short: OpenStudio 3.0 + Ubuntu Bionic 18.04 = No obvious dependency issues
Have you thought about using the OpenStudio docker image? Seems like it would save you a lot of hassle. https://hub.docker.com/r/nrel/openstudio
@chriswmackey feel free to edit this as a question and then answer below.
@chriswmackey could you share how you enabled using the Ruby bindings directly on Bionic, either here or on Slack?
@shorowit . I am aware of the OpenStudio docker image but, for my purposes, it's huge (nearly 4 GBs) and wasn't ideal for my purposes. @MatthewSteen , here is the full list of commands that I run on the travis Bionic machine to enable the Ruby bindings. Note that this machine already comes configured with Ruby 2.5 and also note that you probably don't need to install the OpenStudio extension gem (as I do there) unless your code is making use of it.