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

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

    1. From the Desktop, right-click the very bottom left corner of the screen to get the Task Menu.
    2. From the Task Menu, click System.
    3. Click the Advanced System Settings link in the left column.
    4. In the System Properties window, click on the Advanced tab, then click the Environment Variables button near the bottom of that tab.
    5. In the Environment Variables window (pictured below), highlight the Path variable in the "System variables" section and click the Edit button.
    6. Add or modify the path lines with the paths you want the computer to access. For ruby it will be:

      ;YOUR_RUBY_INSTALLATION_PATH\bin;
      

    The operation with set PATH=C:\Ruby200-x64\bin;%PATH% is probably only temporary until you restart your computer.

提交回复
热议问题