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

Trying to configure PATH variables for CLI measure testing

asked 2018-06-26 08:31:31 -0500

ParticleSwarm's avatar

updated 2018-06-26 09:24:35 -0500

I am currently trying to set up the command line interface for for measure testing. I modified the PATH variable to point to the OpenStudio version of ruby to use.

I also tried putting a .rb file in the site_ruby file Path and overall I am getting an error of "Cannot load such file" -- (LoadError).

I am using OpenStudio version 2.5.1, and have the latest install of ruby 2.4

ruby files are executable from the directory with a hello-world that I tested, so I am not sure why it cannot load the file or that its not finding it. They are in the same directory.

UPDATE: downgraded my Ruby to 2.2.4 to see if that would fix the issue, no luck. Still getting an error "LoadError: cannot load such file --"

edit retag flag offensive close merge delete


Update I needed the X64 bit of the Ruby install!

ParticleSwarm's avatar ParticleSwarm  ( 2018-06-27 09:33:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-06-26 11:21:47 -0500

Try following the directions here.

edit flag offensive delete link more


Thank you! this is a new source I have not seen before. I completed all of the steps however when trying to install the gem bundler, and the json. both returned:

ERROR: Could not find a valid gem 'json' (>= 0), here is why: Unable to download data from - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (

ParticleSwarm's avatar ParticleSwarm  ( 2018-06-26 11:31:49 -0500 )edit

Make sure you have the correct ssl certificates installed:

In particular this section:

Also, I don't think you need bundler just for the CLI, though you may need it if you want to use 'openstudio-standards'. Try require 'openstudio' in ruby after you've set your path environment variable.

mdahlhausen's avatar mdahlhausen  ( 2018-06-26 19:32:35 -0500 )edit

thank you for your help, After setting the new path to the new installation of ruby, with the openstudio.rb included in the site_ruby and the correct reference of openstudio-2.5.1 when I require 'openstudio' it is still telling me that it cannot load the .so file.

the Error being thrown appears to be coming from the kernel_require.rb file in ruby on line 54.

ParticleSwarm's avatar ParticleSwarm  ( 2018-06-27 08:00:07 -0500 )edit

what operating system are you using

mdahlhausen's avatar mdahlhausen  ( 2018-06-27 10:37:13 -0500 )edit

I am running windows 10, the solution to the problem was that I did not have the 64 bit version of ruby to match the 64 bit Open Studio.

Thanks again for the support!

ParticleSwarm's avatar ParticleSwarm  ( 2018-06-27 10:41:19 -0500 )edit

Your Answer

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

Add Answer

Training Workshops

Question Tools



Asked: 2018-06-26 08:31:31 -0500

Seen: 229 times

Last updated: Jun 26 '18