>

What are the proper system environment settings for Microsoft Visual Studio 2010 Professional Edition compiler for 32-bit Windows?

Categories: Riverbed Modeler
Solution Number: S20842

Issue

What are the proper system environment settings for Microsoft Visual Studio 2010 Professional Edition compiler for 32-bit Windows?

Solution

This knowledge base is provided as a courtesy for Riverbed users to help with the initial configuration of MSVS 2010 Professional edition; Riverbed Technical Support does not officially support system administration for non-Riverbed products. The following variables need to be specified for proper operation of MSVS with Riverbed. (Depending on how MSVS was installed, these variables may have already been set by the MSVS installation process.)

NOTE:

  • The following settings assume that Visual Studio 2010 Professional edition has been installed using the default installation directory settings (C:Program Files/Microsoft Visual Studio 10.0) and that your Windows directory is C:Windows.
  • Provided is the list of environment settings that should be added or set in the System Variables on your computer. If the variable name already exists on your system, make sure that the value associated for that variable is accurate. If not, you must add the correct value as discussed below.

Procedure:

  1. Open the Microsoft Visual Studio Console (Default path: Start > Programs > Microsoft Visual Studio 2010 Professional > Visual Studio Command Prompt (2010))
  2. Generate the environment variables from your Microsoft Visual Studio compiler by entering the set command. Since you only need three variables (INCLUDE, LIB, and Path), simply enter the set commands in the MSVS command prompt as follows:

    %> set INCLUDE
    %> set LIB
    %> set Path

     
  3. Each of the commands above produces a value for the respective variable entered. Copy each value exactly as it appears. Take note of the following when copying the variables:
    1. INCLUDE: Copy the whole string generated
    2. LIB: Copy everything before LIBPATH =
    3. PATH: Copy everything up to C:Windows System32
  4. Open the System Properties window to create the user variables. This may be done through: Control Panel > System > Advanced > Environment Variables.
  5. If the variable(s) above do not exist in your user variables, please create the variable as explained in step 6 below. If any of the above variables exist, make sure that the value to that variable is exactly the same as its respective output from the Visual Studio Command Prompt from step 3 above.
  6. To create a new system variable, click on the New tab from the System Properties window opened in step 4 above. Enter the variable name (e.g., INCLUDE) and the variable value (e.g., INCLUDE output from the MSVC console) in the respective fields. Be careful not to add any spaces or unexpected characters. Repeat this step for each of the three variables.
  7. Click OK to save the changes made to the system variables.

To ensure that the Compiler is installed correctly, open a Command Prompt and type cl to invoke the compiler. Then type link to invoke the linker/binder. Confirm that each of these commands returns the correct information for the .NET installation. After this, start Riverbed Modeler and run simulations as usual.

 

Environment

Compiling/Linking

NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Last Modified: 2015-06-02
Can't find an answer? Create a case