通过cygwin的ISO 安装包安装cygwin后,startx提示:
cheyo@CHEYO
/
usr
/
X11R6
/
bin
$ startx
xinit : No such file or directory (errno 2 ) : no server " X " in PATH
Use the -- option , or make sure that / usr / X11R6 / bin is in your path and
that " X " is a program or a link to the right type of server
for your display . Possible server names include :
giving up .
xinit : Connection refused (errno 111 ) : unable to connect to X server
xinit : No such process (errno 3 ) : Server error .
cheyo@CHEYO / usr / X11R6 / bin
$
$ startx
xinit : No such file or directory (errno 2 ) : no server " X " in PATH
Use the -- option , or make sure that / usr / X11R6 / bin is in your path and
that " X " is a program or a link to the right type of server
for your display . Possible server names include :
giving up .
xinit : Connection refused (errno 111 ) : unable to connect to X server
xinit : No such process (errno 3 ) : Server error .
cheyo@CHEYO / usr / X11R6 / bin
$
原因是:
需要在/usr/X11R6/bin/下创建一个叫X的链接到/usr/X11R6/bin/XWin.exe。
解决办法是:
执行如下命令:
本文介绍了解决Cygwin中startx无法启动的问题。主要原因是缺少正确的X服务器链接。解决步骤包括在特定目录下创建指向XWin.exe的X链接。
847

被折叠的 条评论
为什么被折叠?



