Help in debugging

Greetings,

I have installed Grass 4.1 along with the data and imagery acquired from the
network on a SUN SPARC Station 2 running SUN OS Release 4.1.1.

When I try to start the graphics monitor the following message is displayed
to the 'd.mon start=x0' command:

   GRAPH_SET: Can't open
   Please start graphics monitor <x0>

The system does not have Motif installed on it, is this a requirement?
It has OpenLook instead. I basically took the defaults for the compiler,
loader and other settings and it found the X11 libraries etc, ok. All the
files and directories have open access.

Does anyone have an answer for this one?

Thanks in advance.

Mike McSherry
USDA, Fort Collins, CO

Mike McSherry (mmcsherr@ag.gov ) writes on 8 Nov 93:

to the 'd.mon start=x0' command:

  GRAPH_SET: Can't open
  Please start graphics monitor <x0>

The system does not have Motif installed on it, is this a requirement?

no.

check your display environment variable ( % printenv DISPLAY ).

from Graph_Set.c:

    /* Open the display using the $DISPLAY environment variable to
     * locate the X server. Return 0 if cannot open. */
    if (!(dpy = XOpenDisplay(NULL))) {
        fprintf(stderr, "Graph_Set: can't open %s\n", XDisplayName(NULL));

                                                 ^^

        return 0;
    }

     The XDisplayName function returns the name of the display
     that XOpenDisplay would attempt to use. If a NULL string is
     specified, XDisplayName looks in the environment for the
     display and returns the display name that XOpenDisplay would
     attempt to use. This makes it easier to report to the user
     precisely which display the program attempted to open when
     the initial connection attempt failed.