First time here? Check out the Help page!

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 4 years ago

chriswmackey's avatar

updated 4 years ago

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

Preview: (hide)

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  ( 4 years ago )

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

MatthewSteen's avatar MatthewSteen  ( 4 years ago )

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

MatthewSteen's avatar MatthewSteen  ( 4 years ago )

@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  ( 4 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

updated 4 years ago

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)
Preview: (hide)
link

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  ( 4 years ago )

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 402 times

Last updated: May 31 '20