Linux Installation Troubleshooting

This section provides solutions for problems that may occur during Linux installations. Each problem has a discussion section that explains what is happening and a solution section that explains how to solve the problem. If your problem is not described here, contact Technical Support.

Problem

Attempts to run programs that use Riverbed Modeler libraries result in "No such file or directory" errors.

Discussion

The PATH environment variable must be set to include the correct Riverbed Modeler executable directory. Either the variable does not include the executable directory or it is set for the directory of an earlier release.

Solution

Make sure each user has the correct environment path, as follows:

Procedure 1: Checking the Environment Path

  1. Log in to the user's account.

  2. Open the user's shell startup file (.cshrc in the C shell).

  3. Add the following directory to the user's PATH variable.

    <install_dir>/<release>/sys/unix/bin

End of Procedure 1

Problem

You do not know if there is an ANSI C compiler installed and configured on the server workstation. The absence of a compiler leads to errors when compiling models and running simulations.

Discussion

An ANSI C compiler is necessary for simulation and model building. You may need to update system-wide environment variables to include the directories that contain the compiler.

Solution

To determine whether your C compiler is ANSI compliant, type and compile the following program. If the compiler is set up properly, you will see the following message when you run the program:

The compiler used to compile this code supports ANSI.

If the program fails, you must point Riverbed Modeler to a script that uses an ANSI-compliant compiler. After installing the compiler, you must change the value of the comp_prog or comp_prog_cpp preferences in each user's preferences file to the name of the script. If you need additional help, contact technical support.

/* test_for_ansi.c */
/*                 */
/* prompt% cc test_for_ansi.c        */
/*                                 */
/* This typically creates an executable program named */
/* a.out. Many compilers also support a '-o'          */
/* operation that can be used as shown below to re-   */
/* name this executable program:                       */
/*                                                     */
/* prompt% cc test_for_ansi.c -o test_for_ansi         */
#include <stdio.h>

int main ()
{
#ifdef __STDC__
printf ("The compiler used to compile this code 
supports ANSI\n");
#else
printf ("The compiler used to compile this code
is non-ANSI\n");
printf ("An ANSI compliant compiler is required
for use with Riverbed Modeler\n");
#endif

If you need to install a compiler, make sure it meets the system requirements.