First time here? Check our help page!
1

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

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

Am I doing something wrong?

Julien Marrec's avatar
29.7k
Julien Marrec
asked 2015-09-17 16:19:00 -0500, updated 2015-09-17 16:31:24 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

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.

macumber's avatar
12k
macumber
answered 2015-09-18 00:37:58 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments