Step 2: Running the Install Program

Note
Before you can run MemoryScape, you must obtain a demo licence. You can obtain one by filling in the form located at http://www.totalviewtech.com. After filing in this form, we will email you a demo license.

This section describes how you install a new version of MemoryScape. Here is the procedure for installing MemoryScape:

  1. (Optional) Go to the system upon which you will be installing MemoryScape and become the root user:
  2. su root

    NoteIn some circumstances (particularly on a Macintosh), you'll want to use the sudo command instead of su. If you use the sudo command, you'll be typing sudo ./Install instead of ./Install in step 2.

    Installing MemoryScape as the root user prevents users from modifying the software. However, you should not run MemoryScape as root.

  3. Go to the directory containing the files extracted from the downloaded tar file and then start the Install program by typing:
  4. ./Install

    For information on using this command, type ./Install –help. If you use any of the options described in this displayed information, the installation procedure is no longer interactive.

    The Install program asks that you name an installation directory. If the directory you specify does not exist, the Install program creates it.

    If you do not enter a name, the installation directory will either be/usr/toolworks or /opt/toolworks—this is system-dependent. Type a period "." to place MemoryScape in your current directory.

    This manual refers to the installation directory's pathname as installdir.

    The Install program then creates a toolworks directory and places two subdirectories within it:

    • memscape.version. This is where Install places MemoryScape.
    • flexlm-version: This is where Install places the license manager.
  5. You are now asked to select which components you wish to install.
  6. If you are installing MemoryScape for multiple platforms in a common NFS directory, you only need to install the common components once.

  7. The Install program asks if it should create a symbolic link (named memscape) to this installation directory.
  8. If you are not the root user, Install cannot create the link, so you should answer "n" (no). If Install cannot create the link, you can ignore its complaints and continue installing MemoryScape by pressing Enter.

  9. If you became root using su, exit from root after Install concludes by typing:
  10. exit

  11. Test if MemoryScape was successfully installed by typing:
  12. installdir/toolworks/memscape.version/bin/memscape

    MemoryScape prints information that includes a version number and a message indicating that a license file is not installed.

    If MemoryScape cannot initialize the license manager, it prints the following message:

    Unable to initialize MemoryScape license

    If you see this message, you need to confirm that you did install the license. You may need to set the LM_LICENSE_FILE environment variable to the installation directory. (This variable is described in the next step.)

 


TotalView Technologies, LLC.
http://www.totalviewtech.com
Voice: (508) 652-7700
version 3.0
Copyright © 2009, TotalView Technologies, LLC. All Rights Reserved.
Comments to: documentation@totalviewtech.com