[MacPorts] #14179: gtk2: cannot open display: (RuntimeError)
#14179: gtk2: cannot open display: (RuntimeError) --------------------------------+------------------------------------------- Reporter: gjznituv@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: | --------------------------------+------------------------------------------- After installing gtk2 for ruby (rb-gnome), I'm trying to run a script that tries to open the display - e.g. rsqlitegui.rb ([http://rsqlitegui.rubyforge.org/]) or simply run: {{{ [~] ruby -e "require 'gtk2'" }}} I then get the same error every time: {{{ /opt/local/lib/ruby/vendor_ruby/1.8/gtk2.rb:13:in `init': cannot open display: (RuntimeError) }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14179> MacPorts </projects/macports> Ports system for Mac OS
#14179: gtk2: cannot open display: (RuntimeError) ---------------------------------+------------------------------------------ Reporter: gjznituv@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Changes (by jmpp@macports.org): * milestone: => Port Bugs -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14179#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#14179: gtk2: cannot open display: (RuntimeError) ---------------------------------+------------------------------------------ Reporter: gjznituv@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by ram@macports.org): What platform is this on? If it's Leopard have you installed the X11 update from http://xquartz.macosforge.org? Also what is your ```$DISPLAY``` variable set to? It should be of the form ```/tmp/launch-rgfV7K/:0``` on Leopard. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14179#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#14179: gtk2: cannot open display: (RuntimeError) ---------------------------------+------------------------------------------ Reporter: gjznituv@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by gjznituv@gmail.com): I'm on Leopard, 10.5.1. I haven't installed the X11 update. Should I? Or is that something that breaks gtk2? My $DISPLAY may have gone awry: {{{ [~] echo $DISPLAY :0.0 [~] /tmp/launch launch-1kcZ0I/ launch-Zf7Gla/ launchd-213.s2eVAU/ launchd-59.kte9k3/ launch-5QOTXc/ launchd-129.Duln8W/ launchd-216.PGV2fl/ launchd-6782.JEBM94/ }}} What should I do about it? -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14179#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#14179: gtk2: cannot open display: (RuntimeError) ---------------------------------+------------------------------------------ Reporter: gjznituv@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by ram@macports.org): There's a bug in Leopard's libX11 that causes it to crash on most gtk apps so I'd definitely advise installing the update. Regarding ```$DISPLAY```: you're setting ```$DISPLAY``` somewhere in your setup scripts and need to remove it, running the following should indicate where: {{{ $ grep DISPLAY ~/.*rc ~/.login ~/.*profile ~/.MacOSX/ environment.plist 2>/dev/null }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14179#comment:4> MacPorts </projects/macports> Ports system for Mac OS
#14179: gtk2: cannot open display: (RuntimeError) ---------------------------------+------------------------------------------ Reporter: gjznituv@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ---------------------------------+------------------------------------------ Comment (by gjznituv@gmail.com): Thanks. "export DISPLAY=:0.0" somehow found its way into my .profile, not sure how. I removed it and it works now. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14179#comment:5> MacPorts </projects/macports> Ports system for Mac OS
#14179: gtk2: cannot open display: (RuntimeError) ---------------------------------+------------------------------------------ Reporter: gjznituv@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: invalid | Keywords: ---------------------------------+------------------------------------------ Changes (by raimue@macports.org): * status: new => closed * resolution: => invalid -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14179#comment:6> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts