Link Search Menu Expand Document

Troubleshooting Installation Errors

Cannot Load such file – uo_cli

If after installation, you try to use the URBANotp CLI and get an error similar to this:

C:/Ruby27-x64/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- uo_cli (LoadError)

Ensure that your path on the command line is not within a directory that already has a Gemfile in it. If it does, move to a different directory with no Gemfiles and try the commands again. URBANopt cannot be called successfully from a directory containing a Gemfile.

Bundler Installation Error

If you have a secure firewall that prevents bundler from installing properly, type the following into the command line:

gem sources -c gem sources -a http://rubygems.org/

You will need to accept the reduced security of http compared to https

If installing bundler still doesn’t work, create a .gemrc file in your home directory:

type nul > C:\Users\<user_name>\.gemrc

Edit the new .gemrc file to contain:

:backtrace: false
:bulk_threshold: 1000
:sources:
- http://rubygems.org
:update_sources: true
:verbose: true
  • Now install bundler:
gem install bundler -v 2.1

Installing OpenStudio in Ubuntu < 18.04:

Manually install libpng12

  • If you get gdbm libs errors like the following, you need to create symlinks to the appropriate version (libgdbm.so.5 and libgdbm_compat.so.4):

      /usr/local/openstudio-3.0.0/bin/openstudio: error while loading shared libraries: libgdbm.so.3: cannot open shared object file: No such file or directory
    

    or:

      /usr/local/openstudio-3.0.0/bin/openstudio: error while loading shared libraries: libgdbm_compat.so.3: cannot open shared object file: No such file or directory
    

URBANopt, Copyright (c) 2019-2024, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.