I followed the Ruby installation instructions here, but when I type irb
then require 'openstudio'
on the command line, I get this:
irb(main):001:0> require 'openstudio'
LoadError: 126: The specified module could not be found. - C:/openstudio-2.2.0/Ruby/openstudio.so
from C:/openstudio-2.2.0/Ruby/openstudio.rb:55:inrequire_relative' from C:/openstudio-2.2.0/Ruby/openstudio.rb:55:in
<top (required)>'="" <br=""> from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require'
from C:/Ruby200-x64/lib/ruby/site_ruby/openstudio.rb:1:in<top (required)>' from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in
require'
from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from (irb):1 from C:/Ruby200-x64/bin/irb:12:in
<main>'
My OpenStudio and Ruby installations are both 64 bit and I'm running Windows 10 Pro. My Path
environment variable includes C:\openstudio-2.2.0\Ruby
, C:\Ruby200-x64\lib
, and C:\Ruby200-x64\bin
.
Note also that the geometry tab in my OpenStudio application does not work for a model based on an IDF file with geometry.