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

Can someone please provide me the steps for openstudio installation in Ubuntu 16.04 ?

asked 2017-12-26 23:38:39 -0500

Siv gravatar image

updated 2017-12-27 11:08:33 -0500

Can someone please provide me the steps for openstudio installation in Ubuntu 16.04 ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2018-01-04 02:17:42 -0500

updated 2018-01-05 03:38:53 -0500

I've try to install following Julien's answer but i can't solve package dependencies, so i've decided to install from Sources last OpenStudio 2.4.0 version into Ubuntu 16.04 64 bits operating system ok :), following this steps:

  • Download last Source Code .zip or .tar.gz compressed file from https://github.com/NREL/OpenStudio/releases
  • Extract OpenStudio compressed file into your sources directory
  • If .zip: unzip file.zip -d dest_folder or if .tar.gz: tar xf file.tar.gz -C dest_folder

  • sudo apt-get install dpkg-dev git cmake-curses-gui cmake-gui libssl-dev libxt-dev libncurses5-dev libgl1-mesa-dev autoconf libexpat1-dev libpng12-dev libfreetype6-dev libdbus-glib-1-dev libglib2.0-dev libfontconfig1-dev libxi-dev libxrender-dev libgeographiclib-dev chrpath

  • Install cmake from source:

  • wget https://cmake.org/files/v3.7/cmake-3....
  • tar -xzf cmake-3.7.1.tar.gz
  • cd cmake-3.7.1/
  • ./configure
  • make
  • sudo make install
  • (check that your cmake is 3.7.1)
  • cmake --version

  • sudo apt-get install autotools autotools-dev automake

  • mkdir build

  • cd build

  • ccmake ../openstudiocore

  • press c to configure, and then press g to generate

  • make GenerateIddFactory

  • make GenerateIddFactoryRun

  • (still inside build directory)

  • make
  • (process run during a long time: hours)

  • sudo make install

  • OpenStudio installed from sources ok :)

  • To Get EnergyPlus version:

  • energyplus --version
  • openstudio energyplus_version

  • To Run OpenStudioApp application:

  • OpenStudioApp
edit flag offensive delete link more

Comments

You can safely use a newer cmake, I use 3.9.4 for example.

Julien Marrec gravatar imageJulien Marrec ( 2018-01-05 03:38:17 -0500 )edit
1

answered 2017-12-28 05:53:18 -0500

updated 2018-05-17 09:16:29 -0500

Download the .debfile from https://github.com/NREL/OpenStudio/re...

Try to install it. Rather than just double clicking it, use sudo dpkg -i OpenStudio-xxxx.deb (the xxxx portion will depend on which release you selected, eg OpenStudio-2.4.0.978a4d7e98-Linux.deb for the current latest), as it will be more verbose as far as dependency issues.

I would bet that in 99% of the cases you're going to run into dependencies issues: there are dependencies expected such as libwxgtk3.0-0 but you can only find libwxgtk3.0-0v5 or libwxgtk3.0-dev in official sources for Xenial (16.04).

The way I resolved this issue is to download the packages from Trusty (14.04): https://www.ubuntuupdates.org/package..., which also needed https://www.ubuntuupdates.org/package....

So, to recap, do it in this order: Install libwxbase3.0-0, then libwxgtk3.0-0, then OpenStudio deb package.


EDIT:

I think the Pull Request I just made, #3133, will fix this dependency issue (worked on my machine at least).

edit flag offensive delete link more

Comments

When I try to install "libwxbase3.0-0" it says "dpkg: dependency problems prevent configuration of libwxbase3.0-0:amd64: libwxbase3.0-0v5:amd64 (3.0.2+dfsg-1.3ubuntu0.1) breaks libwxbase3.0-0 and is installed"

So please help me resolve this

Siv gravatar imageSiv ( 2017-12-28 22:15:02 -0500 )edit

The erorr message is quite clear, you already have libwxbase-3.0-0v5 installed... Try sudo apt remove libwxbase

Julien Marrec gravatar imageJulien Marrec ( 2017-12-31 07:15:56 -0500 )edit

Thank you, I have not checked it because I have started to use it in windows operating system

Siv gravatar imageSiv ( 2018-05-17 23:02:34 -0500 )edit

Your Answer

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

Add Answer

 

Question Tools

Stats

Asked: 2017-12-26 23:38:39 -0500

Seen: 152 times

Last updated: May 17