Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
3

Running OpenStudio 3.0 on Linux

asked 2020-05-27 23:45:53 -0500

chriswmackey's avatar

updated 2020-05-28 09:11:51 -0500

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

edit retag flag offensive close merge delete

Comments

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

shorowit's avatar shorowit  ( 2020-05-28 09:55:27 -0500 )edit

@chriswmackey feel free to edit this as a question and then answer below.

MatthewSteen's avatar MatthewSteen  ( 2020-05-31 20:50:28 -0500 )edit

@chriswmackey could you share how you enabled using the Ruby bindings directly on Bionic, either here or on Slack?

MatthewSteen's avatar MatthewSteen  ( 2020-05-31 21:09:53 -0500 )edit

@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.

chriswmackey's avatar chriswmackey  ( 2020-07-24 16:25:26 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-05-31 21:06:07 -0500

updated 2020-05-31 22:21:12 -0500

I'll add my recent experience with OpenStudio on Linux.


Debian (KDE)

OpenStudio Application 1.0.0

  • App would not open

OpenStudio SDK 3.0.0

  • Didn't test

Kubuntu 18.04

OpenStudio Application 1.0.0

  • Had to install libwxgtk3.0-0v5 as a dependency
  • Experienced color theme issues where the system theme caused the text in the app to be unreadable (white)

OpenStudio SDK 3.0.0

  • Didn't test

Ubuntu 18.04

OpenStudio Application 1.0.0

OpenStudio SDK 3.0.0

  • TBD (in progress)
edit flag offensive delete link more

Comments

Thanks, @MatthewSteen . I think my original post answers the last "TBD" that you have there for OpenStudio SDK 3.0.0 on Ubuntu 18.04, which is that it's working without issues for me.

chriswmackey's avatar chriswmackey  ( 2020-07-24 16:28:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2020-05-27 23:45:53 -0500

Seen: 357 times

Last updated: May 31 '20