Help in debugging

Darrell McCauley mccauley at
Tue Nov 9 14:45:51 EST 1993

Mike McSherry (mmcsherr at ) 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?  


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.

More information about the grass-dev mailing list