在Windows上安装交互式红宝石外壳

时间:2016-06-14 21:13:48

标签: irb

我正面临着,当试图在ruby安装后加载irb

C:/Ruby22-x64/lib/ruby/site_ruby/2.2.0/rbreadline.rb:1097:in `<module:RbReadline                                                                                                    >': HOME environment variable (or HOMEDRIVE and HOMEPATH) must be set and point                                                                                                     to a directory (RuntimeError)
        from C:/Ruby22-x64/lib/ruby/site_ruby/2.2.0/rbreadline.rb:17:in `<top (r                                                                                                    equired)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54                                                                                                    :in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54                                                                                                    :in `require'
        from C:/Ruby22-x64/lib/ruby/site_ruby/2.2.0/readline.rb:10:in `<module:R                                                                                                    eadline>'
        from C:/Ruby22-x64/lib/ruby/site_ruby/2.2.0/readline.rb:8:in `<top (requ                                                                                                    ired)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54                                                                                                    :in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54                                                                                                    :in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/irb/input-method.rb:129:in `<module:IR                                                                                                    B>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/irb/input-method.rb:14:in `<top (requi                                                                                                    red)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54                                                                                                    :in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54                                                                                                    :in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/irb.rb:18:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54                                                                                                    :in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54                                                                                                    :in `require'
        from C:/Ruby22-x64/bin/irb:9:in `<main>'

我该如何指向HOME var。 我一直试图从我的c:\ Ruby22-x75 \ bin&gt;中运行irb。仍然无法正常工作

1 个答案:

答案 0 :(得分:0)

去搜索 - &gt;环境变化 - &gt;菜单系统prorerties - &gt;环境变量更改并在已安装的ruby目录中添加带有\ _bin路径的HOME