Mac 上未设置 X11 DISPLAY 变量
No X11 DISPLAY variable was set on Mac
我正在运行从终端申请一个应用程序。预计将启动一个应用程序特定的调试器 GUI,它在内部与 GDB 对话。我试过 {export DISPLAY=localhost:0.0} 和 {export DISPLAY=:0.0}。这是行不通的。
在我的 linux 机器上,我能够 运行 应用程序而无需设置 DISPLAY。
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)`
at java.awt.Window.<init>(Window.java:535)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:224)
at charm.debug.ParDebug.main(ParDebug.java:2291)
Mac(s) 默认情况下不要 运行 X11(Mac 上的核心桌面环境也称为 Quartz). You'll need to install (and run) an X server. Per Apple support
X11 is no longer included with OS X, but X11 server and client libraries for OS X are available from the XQuartz project.
XQuartz 可用。
我已经安装了 XQuartz 然后按照本教程进行操作,其中还显示了应该在 Mac
上进行哪些配置
http://dyhr.com/2009/09/05/how-to-enable-x11-forwarding-with-ssh-on-mac-os-x-leopard/
我正在运行从终端申请一个应用程序。预计将启动一个应用程序特定的调试器 GUI,它在内部与 GDB 对话。我试过 {export DISPLAY=localhost:0.0} 和 {export DISPLAY=:0.0}。这是行不通的。 在我的 linux 机器上,我能够 运行 应用程序而无需设置 DISPLAY。
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)`
at java.awt.Window.<init>(Window.java:535)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:224)
at charm.debug.ParDebug.main(ParDebug.java:2291)
Mac(s) 默认情况下不要 运行 X11(Mac 上的核心桌面环境也称为 Quartz). You'll need to install (and run) an X server. Per Apple support
X11 is no longer included with OS X, but X11 server and client libraries for OS X are available from the XQuartz project.
XQuartz 可用。
我已经安装了 XQuartz 然后按照本教程进行操作,其中还显示了应该在 Mac
上进行哪些配置http://dyhr.com/2009/09/05/how-to-enable-x11-forwarding-with-ssh-on-mac-os-x-leopard/