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

Revision history [back]

OpenStudio Ruby bindings on mac

I'm trying to use the ruby bindings of OpenStudio 1.9.0 on a Mac. I've got it to work no problem on Windows following the short instructions here.

I have rvm installed, with two rubies installed (2.0 and 2.2).

I've created a file at ~/.rvm/rubies/ruby-2.0.0-p647/lib/ruby/site_ruby/openstudio.rb, in which I have:

require '/Applications/OpenStudio 1.9.0/Ruby/openstudio.rb'

I've got the right selected by doing:

rvm use 2.0

When I start irb or pry and do require 'openstudio', I get a crash with a (long) error log. The heading is

/Applications/OpenStudio 1.9.0/Ruby/openstudio/openstudioutilitiescore.bundle: [BUG] Segmentation fault

Am I doing something wrong?

OpenStudio Ruby bindings on mac

I'm trying to use the ruby bindings of OpenStudio 1.9.0 on a Mac. I've got it to work no problem on Windows following the short instructions here.

I have rvm installed, with two rubies installed (2.0 and 2.2).

I've created a file at ~/.rvm/rubies/ruby-2.0.0-p647/lib/ruby/site_ruby/openstudio.rb, in which I have:

require '/Applications/OpenStudio 1.9.0/Ruby/openstudio.rb'

I've got the right selected by doing:

rvm use 2.0

When I start irb or pry and do require 'openstudio', I get a crash with a (long) error log. log (pastebin here). The heading is

/Applications/OpenStudio 1.9.0/Ruby/openstudio/openstudioutilitiescore.bundle: [BUG] Segmentation fault

Am I doing something wrong?