[Contents] [Prev] [Next]

Appendix M

Special Configuration Issues for Sun SPARC Solaris Systems


Note that full use of C-MOLD requires access to the UNIX xterm command. Most users will already have the /usr/openwin/bin directory in their path so that xterm will automatically be found. If you encounter problems locating xterm, you should check and include /usr/openwin/bin, if necessary, in your path setting.

On a Sun SPARCstation that runs Solaris (SunOS), the default window manager is set for the OPEN LOOK Window Manager. In order to start the Motif Window Manager, you need to set Motif environment variables:

  1. Set Motif Window Manager as the Default
  2. Enable Quit on the Workspace Menu
  3. Enable Drag and Drop for the Motif Window Manager
Note: C-MOLD 98 does not support the OPEN LOOK Window Manager.

Setting Motif Environment Variables

Include commands into the user's .profile for Bourne and Korn shell users or the .cshrc file for C shell users to set the following environment variables. Then they will be executed each time you create a new shell window. Be careful to not overwrite any needed existing values.

  1. Set the MOTIFHOME environment variable to the directory containing the Motif libraries:
    $ MOTIFHOME /usr/dt
  2. Set the OPENWINHOME environment variable to the directory containing the Open Windows libraries:
    $ OPENWINHOME /usr/openwin
  3. Set LD_LIBRARY_PATH to include $MOTIFHOME/lib:
    $ LD_LIBRARY_PAT H $MOTIFHOME/lib:$OPENWINHOME/lib
  4. Include the values $MOTIFHOME/bin and /SUNWmfwm in your PATH environment variable:
    $ PATH $MOTIFHOME/bin/opt/SUNWmfwm:$PATH
  5. Set the UIDPATH environment variable to opt/SUNWmfdm:
    $ UIDPATH /opt/SUNWmfdm/%U%S
  6. Include the value $MOTIFHOME/lib/%T/%N%S in your XFILESEARCHPATH environment variable:
    $ XFILESEARCHPATH $MOTIFHOME/lib/%T/%N%S:$XFILESEARCHPATH
  7. Set the XMBINDDIR environment variable to $MOTIFHOME/lib/bindings:
    $ XMBINDDIR $MOTIFHOME/lib/bindings
  8. Add /usr/dt/man to MANPATH:
    $ MANPATH /usr/dt/man:$MANPATH

Setting Motif Window Manager as the Default

The openwin script indirectly starts the OPEN LOOK Window Manager (OLWM). If you want the script to start the Motif Window Manager, you can edit the .xinitrc file in your home directory.

Note: MWM is available only if the Solaris SUNWmfwm is installed.

  1. Edit the .xinitrc file in your home directory.
    If you do not have an .xinitrc in your home directory, copy the file $OPENWINHOME/lib/Xinitrc to your home directory and rename it .xinitrc.
  2. Replace olwm with mwm in the following line:
    $ olwm -syncpid $pid &
  3. Save the changes and quit the .xinitrc file.

Enabling Quit on the Workspace Menu

The Motif Window Manager does not have an option to exit MWM. Use the following steps to enable Quit on the Workspace menu.

  1. Type:
    $ cp /opt/SUNWmfwm/lib/system.mwmrc %HOME/.mwmrc
  2. Edit the $HOME/.mwmrc file and remove the leading exclamation mark (!)
    $ !"Quit..." f.quit_mwm

Enabling Drag and Drop for the Motif Window Manager

To ensure the OpenWindows drag-and-drop option runs correctly with MWM, modify the openwin-sys script in /usr/openwin/lib ($OPENWINHOME/lib).

  1. Become superuser, and edit the $OPENWINHOME/lib/openwin-sys script. Remove the comment (#) from the following line:
    $ #dsdm &
  2. Save the changes and quit the file.
  3. Exit the window system and restart it.



[Contents] [Prev] [Next]

Copyright © 1997-1998 Advanced CAE Technology, Inc. All rights reserved.