Solution
To set in Linux (csh/tcsh shell)
- Use the command "setenv VARIABLE value".
- Test whether it worked by using "echo $VARIABLE"
For example::
setenv XILINX /programs/Xilinx
To unset in Linux (csh/tcsh shell)
- Use the command "env -u VARIABLE" or "unsetenv VARIABLE"
- Test whether it worked by using "env"
For example::
env -u XILINX
Linux (sh/bash shell)
- Use the command export VARIABLE = value
- Test whether it worked by using "echo $VARIABLE"
For example:
export XILINX = /programs/Xilinx
To unset in Linux (sh/bash shell)
- Use the command "unset VARIABLE"
- Test whether it worked by using "env"
For example::
unset XILINX
Windows XP Professional
Globally:
- Right-click My Computer, and select Properties.
NOTE: "My Computer" will be located under the "Start" menu, if it is not on the desktop.
- Click the Advanced tab.
- Click Environment Variables, and add the desired variable.
For example:
Variable: XILINX
Value: C:\Xilinx
Windows 2000 Professional
- Right-click My Computer, and select Properties.
- Click the Advanced tab.
- Click Environment Variables, and add the desired variable.
For example:
Variable: XILINX
Value: C:\Xilinx
- Click Set.
- Click Apply.
- Click OK.
Windows XP/2000 Professional single-session
- Open a command prompt.
- Set the Xilinx variable.
- Set the PATH variable.
- Run the Xilinx command-line application.
For example: - Go to Start -> Run, and run "cmd".
- At the prompt, type: set XILINX=C:\<path_to_Xilinx>
- At the prompt, type: set PATH=C:\<path_to_Xilinx>\bin\nt;%PATH%
- At the prompt, type: "ngdbuild"
For a single Project Navigator session
On Windows operating systems, environment variables can be set or unset from within the Project Navigator GUI.
From the Tcl Shell (available in 8.2i and later), type the following:
set env(<VARIABLE>) <value>
Example:
set env(TEMP) c:\temp
To remove or unset an environment variable from the Tcl shell, type:
unset env(<VARIABLE>)
To remove or unset an environment variable from the Tcl shell, type: unset env(<VARIABLE>) Example:
unset env(TEMP)
To see the value of an environment variable in the tcl shell, type:
puts $::env(<VARIABLE>)