How do I add Ruby to the PATH variable on Windows?

前端 未结 7 2018
梦如初夏
梦如初夏 2020-12-01 16:16

I have Ruby installed, but I still need to add it to the PATH variable. I found something online for how to manually add it using the command line:

set PATH=         


        
7条回答
  •  时光说笑
    2020-12-01 16:41

    I know this is questions has the Windows tag, however it is one of the first DuckDuckGo results for "ruby gems add to path" so I just wanted to add this.

    On Linux you can add this line to the end of your .bashrc in order to add it to your path:

    export PATH=$PATH:~/.gem/ruby/2.6.0/bin

提交回复
热议问题