Adding gem paths

To add all RubyGems and their dependency paths, import all RubyGems. To obtain the Ruby gem paths, run the gem env command. Under GEM PATHS, look for a directory similar to:

/home/myUser/gems/ruby-version

This directory contains another directory called gems, which contains directories for all the gem files installed on the system. For this example, use the following in your command line:

-rubygem-path /home/myUser/gems/ruby-version/gems

If you have multiple gems directories, separate them with semicolons (Windows) or colons (non-Windows ) such as:

-rubygem-path /path/to/gems:/another/path/to/more/gems

On Windows systems, separate the gems directories with a semicolon.