问题
I just installed pik (ruby version control) on my windows machine at work ( to C:\bin ), but it said that it's not installed in the system path, that I'll have to add it. I don't often use a windows machine. Can anyone show me how to do this?
回答1:
Setting Path on Windows
For Windows XP:
- Start -> Control Panel -> System -> Advanced
- Click on Environment Variables, under System Variables, find PATH, and click on it.
- In the Edit windows, modify PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
- Close the window.
For Windows Vista:
- Right click “My Computer” icon
- Choose “Properties” from context menu
- Click “Advanced” tab (“Advanced system settings” link in Vista)
- In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
In Windows 7 it is the same as in Vista, but there is also an option to set it from command line using setx
program, as described here.
来源:https://stackoverflow.com/questions/8273110/installing-pik-in-system-path-in-windows