Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Point Gnuplot to X11

516 views
Skip to first unread message

Erik Zweigle

unread,
Feb 22, 2015, 7:20:17 PM2/22/15
to
Hello,

I've recently tried using the X11 terminal for 3D interactive options. This worked ~2 years ago but I've only had a need for aqua term until now. Below is the message I receive:

gnuplot> set term x11
Terminal type set to 'x11'
Options are ' nopersist enhanced'
gnuplot>
gnuplot: unable to open display '/private/tmp/com.apple.launchd.E35rye5Llh/org.macosforge.xquartz:0'
gnuplot: X11 aborted.

It seems that gnuplot is looking for X11 in a temporary file that has been erased. I decided to upgrade gnuplot to 5.0.0 and point it to the correct X11.app location in /Applications/Utilities/ . I modified line 294 of the makefile but still receive the same message - 'unable to open display'. X11 libraries are linked properly. Any ideas?

I should also mention that I updated XQuartz to 2.7.7 and point any applications looking for XQuartz to X11. But that didn't help.

Also, x11 is a visible option when checking available terminals within gnuplot.

Hans-Bernhard Bröker

unread,
Feb 23, 2015, 6:44:21 PM2/23/15
to
Am 23.02.2015 um 01:20 schrieb Erik Zweigle:

> gnuplot: unable to open display
> '/private/tmp/com.apple.launchd.E35rye5Llh/org.macosforge.xquartz:0'

> It seems that gnuplot is looking for X11 in a temporary file that has
> been erased.

I'm afraid you're rather completely misunderstanding that message.
That's not a file it's looking for. It's a DISPLAY. Those would
usually be not a file, but rather an (abbreviated) IP address / hostname
plus some X11-specific extension. The usual shortest form is ":0",
which is equivalent to "the first display on localhost".

The exact form to be used is a property of your X11 server. You _are_
running one, I hope?

| I decided to upgrade gnuplot to 5.0.0 and point it to the correct
> X11.app location in /Applications/Utilities/ . I modified line 294
> of the makefile but still receive the same message

No wonder. DISPLAY is not something to be set in Makefiles. You set
that in your environment, to tell X11 programs where their display is to
show up.

Erik Zweigle

unread,
Feb 28, 2015, 3:31:31 PM2/28/15
to

> The exact form to be used is a property of your X11 server. You _are_
> running one, I hope?


Not sure when I lost it, but a sudo port install xorg-server followed by logout/login fixed everything. Thanks!
0 new messages