错误:无法初始化gtk,是否正确设置了DISPLAY? [英] Error: Unable to initialize gtk, is DISPLAY set properly?
本文介绍了错误:无法初始化gtk,是否正确设置了DISPLAY?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试从服务器"bert"运行Image应用程序
I'm trying to run Image application from server "bert"
我通过OSX Maverick以
I connected through my OSX Maverick as
ssh ak324@bert.eecs.qmul.ac.uk
我使用
$ make
但是当我运行生成的文件时
but when I run the resulting file
$ ./窗口
它给了我以下错误:
Error: Unable to initialize gtk, is DISPLAY set properly?
我该如何解决这个问题?
How can I solve this problem?
推荐答案
您应该使用-X或-Y选项连接才能启动图形应用程序:
You should connect with the -X or -Y option to be able to launch graphical applications:
ssh -X ak324@bert.eecs.qmul.ac.uk
如果这样做没有帮助,则应咨询/etc/ssh/sshd_config是否启用了X11Forwarding.
If that doesn't help, you should consult /etc/ssh/sshd_config whether X11Forwarding is enabled.
这篇关于错误:无法初始化gtk,是否正确设置了DISPLAY?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文