Setting up your PATH on Windows
Jump to navigation
Jump to search
If you want to compile the OHRRPGCE on Windows, and you have already installed the Windows compiling requirements you should also verify that your PATH has been updated.
Testing if a command is already in the PATH[edit]
- Open a new CMD window
- Type the command name
- If you see something similar to the following, then the command is NOT in the PATH and needs to be added:
'commandname' is not recognized as an internal or external command, operable program or batch file.
How to edit the PATH[edit]
The PATH is part of your "Environment". The method to edit this is slightly different for different versions of Windows.
Windows XP[edit]
- Right-click on "My Computer"
- Pick "Properties"
- Click on the "Advanced" tab.
- Click on the "Environment Variables" button.
- Double-click on PATH to edit it
- Add new locations to the end of the PATH, they should be separated by semicolons ;
- Close any existing command prompt windows, as they will still use the old value of PATH
Windows 7[edit]
- Open the Start menu
- Right click on "Computer"
- Pick "Properties"
- Click the "Advanced System Settings" link on the left panel.
- Click on the "Advanced" tab
- Click the "Environment Variables" button
- Double-click on PATH to edit it
- Add new locations to the end of the PATH, they should be separated by semicolons ;
- Close any existing command prompt windows, as they will still use the old value of PATH
Example Path[edit]
This is an example path on 32-bit Windows XP
c:\Program Files\FreeBASIC;c:\MinGW\bin;c:\Euphoria\bin;c:\python27;c:\python27\Scripts;
This is an example path on 64-bit Windows 7
c:\Program Files (x86)\FreeBASIC;c:\MinGW\bin;c:\Euphoria\bin;c:\python27;c:\python27\Scripts;
Things to remember about editing your path[edit]
- If there are already folders in your PATH, do not delete them! just add a semicolon and append your other folders to the end!
- If you are using a 64-bit version of Windows, be aware that 32-bit programs can be installed in C:\Program Files (x86)\ instead of the usual C:\Program Files\
- Python needs to be in your PATH for scons. If you installed Python 2.7 it will be in C:\python27 but if you installed python 3.2 it will be in C:\python32. The Python installer would add these automatically. However, to run scons you also need to put C:\pythonXY\Scripts in your path, which is where scons.bat is normally placed.