AR #11630 - Install - How do I check or manually set environment variables?

Search Answers Database


 

Install - How do I check or manually set environment variables?

AR# 11630
Part SW-Install
Last Modified 2008-05-05 00:00:00.0
Status Active
Keywords system, UNIX, winxp, win2k, setup, env, var

Description

Keywords: system, UNIX, winxp, win2k, setup, env, var

How do I check or manually set the environment variables for Xilinx design tools?

NOTE 1: If you are not sure what to set your environment value to, try "1" or "TRUE".
NOTE 2: Xilinx design tools must be closed and restarted for the environment variables to be used.
NOTE 3: To disable the variable, setting to "0" or "FALSE" does not always work. You should remove the variable.

Solution 1

To set in Linux / Solaris (csh/tcsh shell)

1. Use the command "setenv VARIABLE value"
2. Test whether it worked by using "echo $VARIABLE"

For example::
setenv Xilinx \programs\Xilinx

To unset in Linux / Solaris (csh/tcsh shell)
1. Use the command "env -u VARIABLE"
2. Test whether it worked by using "env"

For example::
env -u Xilinx

Linux / Solaris (sh/bash shell)

1. Use the command export VARIABLE = value
2. Test whether it worked by using "echo $VARIABLE"

For example:
export Xilinx = \programs\Xilinx

Solution 2

Windows XP Professional

Globally:
1. Right-click My Computer, and select Properties.
(NOTE: "My Computer" will be located under the "Start" menu if it is not on the desktop.)
2. Click the Advanced tab.
3. Click Environment Variables, and add the desired variable.

For example:
Variable: Xilinx
Value: C:\Xilinx

Windows 2000 Professional

1. Right-click My Computer, and select Properties.
2. Click the Advanced tab.
3. Click Environment Variables, and add the desired variable.

For example:
Variable: Xilinx
Value: C:\Xilinx

4. Click Set.
5. Click Apply.
6. Click OK.

Windows XP/2000 Professional single-session

1. Open a command prompt.
2. Set the Xilinx variable.
3. Set the PATH variable.
4. Run the Xilinx command-line application.

For example:
1. Go to Start -> Run, and run "cmd"
2. At the prompt, type set Xilinx=C:\<path_to_Xilinx>
3. At the prompt, type set PATH=C:\<path_to_Xilinx>\bin\nt;%PATH%
4. At the prompt, type "ngdbuild"

Solution 3

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>)

Example:
unset env(TEMP)

To see the value of an environment variable in the tcl shell, type:

puts $::env(<VARIABLE>)
 
 
/csi/footer.htm