gv: Unable to open the display
Alex Vinokur
alexvn@connect.to
Mon Sep 27 18:00:00 GMT 2004
"Igor Pechtchanski" wrote in message news:Pine.GSO.4.61.0409271327180.13693@slinky.cs.nyu.edu...
> On Mon, 27 Sep 2004, Alex Vinokur wrote:
>
> > "Igor Pechtchanski" wrote:
> > > On Mon, 27 Sep 2004, Dr. Volker Zell wrote:
> > >
> > > > >>>>> Alex Vinokur writes:
> > > >
> > > > > $ gv -v
> > > > > gv: Unable to open the display
> > >
> > > That's because the DISPLAY variable is not set correctly. For a default X
> > > invocation (no display number on the command line), DISPLAY should be
> > > ":0.0".
> > >
> > > > > $ cygcheck -sr | grep ghost
> > > > > ghostscript-base 7.05-2
> > > > > ghostscript-x11 7.05-2
> > > >
> > > > > Also:
> > > > > $ which -a gs
> > > > > /usr/local/bin/gs
> > > > > /usr/bin/gs
> > > > > /bin/gs
> > > > > /usr/bin/gs
> > > > > /usr/X11R6/bin/gs
> > > >
> > > > Make sure /usr/X11R6/bin/gs is first in your path.
> > >
> > > Good advice in any case.
> > > Igor
> > [snip]
> >
> > Some changes have be done.
> >
> > $ which gs
> > /usr/X11R6/bin/gs
> >
> > $ set | grep DISP
> > DISPLAY=:0.0
> >
> > $ gs zzz.tex
> > GNU Ghostscript 7.05 (2002-04-22)
> > Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
> > This software comes with NO WARRANTY: see the file PUBLIC for details.
> > GNU Ghostscript 7.05: Cannot open X display `:0.0'.
> > **** Unable to open the initial device, quitting.
> >
> > Something else?
>
> Yeah. Run X? ;-)
Indeed. Thanks.
--- xterm ---
$ gv foo.ps // works fine.
$ gs foo.ps // works fine.
However
$ gs foo.tex
GNU Ghostscript 7.05 (2002-04-22)
Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in \documentstyle
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3
%oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1081/1123(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)--
Current allocation mode is local
Current file position is 123
GNU Ghostscript 7.05: Unrecoverable error, exit code 1
--------------------------------
--
Alex Vinokur
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn
More information about the Cygwin-xfree
mailing list