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

前端 未结 7 2019
梦如初夏
梦如初夏 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:28

    Fear nothing, What you are doing is prepend C:\Ruby200-x64\bin to the existing %PATH%, this is what the command you posted does.

    The path is a list of directories, separated by ;, in which the system will look for the command you execute.

    In your case it's:

    1. C:\Ruby200-x64\bin
    2. %PATH%, if you print it on the command line, you'll find it's itself a list of directories separated by ;.

    In case you want to make your change permanent, you have to change your PATH sytemwide.

提交回复
热议问题