Page 1 of 1

[OS X] unable to open X server

Posted: 2007-08-02T17:32:27-07:00
by mel_
Hi there,

I just installed imagemagic and have problems running the example:

1. convert logo: logo.gif
2. identify logo.gif
3. display logo.gif

1+2 passing without error, 3rd produces: "unable to open X server"
The X server ist installed, startet and the command "display -display :0" displays a logo and a file open dialog.
But why does "display xyz" not work?

Any Suggestions?

Markus

Re: [OS X] unable to open X server

Posted: 2007-08-02T19:03:07-07:00
by magick
You can set the DISPLAY environment variable to :0 to fix the problem. The default is to set the X11 server to NULL and this works fine on Linux boxes but gives an exception under Mac OS X.

Re: [OS X] unable to open X server

Posted: 2007-08-03T13:49:37-07:00
by mel_
Thank you, that was the problem

Re: [OS X] unable to open X server

Posted: 2007-09-10T20:28:02-07:00
by anthony
You need two things.. Where is your display. that is the 'DISPLAY' environment variable.
the other is permission to display. and that is xauth, and xhost.

If you are remote you also need access to the display. ssh -x will
provide that access, set DISPLAY and set xauth appropriatally, if permitted!

See http://www.cit.gu.edu.au/~anthony/info/X/Display.needs
Also look at the links at the bottom of the very first section.