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

OpenStudio Ruby bindings on mac

asked 2015-09-17 16:19:00 -0600

updated 2015-09-17 16:31:24 -0600

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 (pastebin here). The heading is

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

Am I doing something wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2015-09-18 00:37:58 -0600

RVM or rbenv aren't really supported and I have seen all kinds of trouble when people try to use them, do you still have /usr/bin/ruby? I would suggest using that, it ships with Mac OSX.

edit flag offensive delete link more

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: 2015-09-17 16:19:00 -0600

Seen: 137 times

Last updated: Sep 18 '15