4

Install Ruby Gem for OpenStudio 2.1 Measures

Where can I install a ruby gem for use with OpenStudio 2.1.0 measures?

In past versions of OpenStudio (OS 1.#.#), I would install the appropriate files under the 'ruby-install' folder located in the main 'OpenStudio 1.#.#' folder.

Lyle K's avatar
2.2k
Lyle K
asked 2017-06-01 16:56:57 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2017-08-05 07:33:09 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

4

I was able to get this working with the following...

(1) Create an environment variable for GEM_PATH and path it to my local gem directory

(2) Use the OpenStudio CLI and set --gem_path DIR to my local gem directory (same path as above)

Big thanks to @Julien Marrec @David Goldwasser @Eric Ringold for the suggestions and resources

Lyle K's avatar
2.2k
Lyle K
answered 2017-06-02 14:17:03 -0500
edit flag offensive 0 remove flag delete link

Comments

That's an either/or right? You shouldn't need (1) if you use (2) at least, but I'm not 100% sure if (1) by itself works or not.

Julien Marrec's avatar Julien Marrec (2017-06-06 03:03:24 -0500) edit
add a comment see more comments