Getting Started with Sun WorkShop IDE:
Setting Up Your UNIX Account

The document Forte Developer 6 (Sun WorkShop) contains an overview of Sun WorkShop IDE and information on its use that should be read prior to reading this document.

Version 6 of the Sun WorkShop package is installed in the directory /opt/forte6. This installation directory will be referred to as $FORTE throughout this document and others. It is important to note that Sun WorkShop with all language compilers are only available on Strauss and Mahler, and not on Copland. The configuration changes to your UNIX account suggested in this document will only affect your computing environment when you are on Strauss and Mahler.

Here are the environment variables which must be set to use the Forte WorkShop IDE.
PATH${FORTE}/SUNWspro/bin:$PATH
LD_LIBRARY_PATH${FORTE}/SUNWspro/lib
MANPATH${FORTE}/SUNWspro/man:/opt/man:/usr/man
You should define a series of environment variables to use Forte WorkShop IDE. Rather than repeatedly issuing these and other commands to enable you to program using Forte, this document suggests a series of changes to your configuration files that accomplish the same objective.

This documentation assumes that your UNIX account's configuration ("dot") files match, or are based upon, the User Services recommended configuration files: .cshrc, .login, .localalias, and .localenv. These files are found in the /opt/proto directory. Typing the UNIX command

  ~consult/proto/setup
will cause your current configuration files to be renamed (for backup purposes) and replaced with the standard configuration files. The system will display the names of the renamed and replacement files.

Configuration changes to identify the Forte package location

Add the following lines to your ~/.localenv file:
# FORTE Sun WorkShop IDE
setenv FORTE /opt/forte6
if ! -d $FORTE unsetenv FORTE
These commands cause the FORTE environment variable to be set properly each time you start a session on Strauss or Mahler. Whenever a new version of Forte is installed, you will need to update the directory set to FORTE.

Configuration changes to define the UNIX environment for the Forte WorkShop IDE

Creating some aliases (user-defined commands) in your ~/.localalias file will reduce the future typing needed to use CTT. Add the following lines to start a shell on Strauss and Mahler which has all relevant environment variables set.
if $?FORTE then
  alias forteshell "(setenv NEED_FORTE; ttsession -c newgrp \!*)"
else
  alias forteshell echo "Forte not available on `uname -n`"
endif
if $?NEED_FORTE then
  unsetenv NEED_FORTE
  setenv PATH ${FORTE}/SUNWspro/bin:$PATH
  setenv LD_LIBRARY_PATH ${FORTE}/SUNWspro/lib
  setenv MANPATH ${FORTE}/SUNWspro/man:/opt/man:/usr/man
  echo "type fortedoc for documentation";
  alias fortedoc "netscape ${FORTE}/SUNWspro/docs/index.html"
endif
The next time you log onto Strauss or Mahler, you will be able to start an IDE-configured shell with the command
  forteshell 
To associate the new shell with a different group project id (e.g., a UNIX group assigned to a class), type the following command instead:
  forteshell project
where project is your 4-digit group project number.

Configuration changes for X terminals and other X Windows servers

You must be on an X Windows server to use the Sun WorkShop IDE, You can still use the compilers if you do not have a X Windows server. This could be done on

Effective use of any of these X Windows servers requires you to further modify your UNIX configuration files. These changes are described in the document X Windows configuration setup for using Forte WorkShop IDE.

[Back to Forte home page]

Last modified: March 4, 2001
This page maintained by Dean Nairn
Copyright © University of Delaware, 2001.