使用新版本的Cygwin,安装时出现很多问题。------------------留作参考----------------------

首先从官网下载setup.exe后运行安装,选择需要的包。

在终端输入gitk后出现错误:

Application initialization failed: no display name and no $DISPLAY environment variable

解决方案:http://stackoverflow.com/questions/9393462/cannot-launch-git-gui-using-cygwin-on-windows

As of a recent Tcl/Tk update, Cygwin now uses X11 instead of GDI. In short, this means you need to install some of the Cygwin X11 packages and set them up to be able to open the GUI.

This should get you back up and running:

  1. Run the Cygwin installer again (download setup.exe again if you need to).
  2. At the package list, select to install "xinit" and "X-start-menu-icons"; both are under the X11 category. Click next, accept all the dependencies, and install.
  3. In the Windows Start menu, you should have a new group: Cygwin-X. From there, run XWin Server.
  4. In your Cygwin shell, run export DISPLAY=:0.0.

You'll need to repeat step 3 every time you reboot your computer, and step 4 every time you open a new Cygwin shell (or just run echo "export DISPLAY=:0.0" >>~/.profile to have it run automatically whenever you create a new shell).

For the interested, the reason the X11 packages aren't installed automatically is that they're not technically needed: it's possible through somewhat convoluted means to use a different X11 server than the one Cygwin installs when you install the "xinit" package

也就是说新版本的Cygwin需要X11了,所以要装上xinit" and "X-start-menu-icons";

另外,运行的时候:

1. 运行cygwin的安装程序,安装 Xorg Server 和Xinit

2. 运行cygwin,输入startx

3. 运行gitk或者git gui

转载于:https://www.cnblogs.com/allenzhaox/archive/2012/12/28/3201759.html

Cygwin Application initialization failed: no display name and no $DISPLAY environment相关推荐

  1. Nacos学习日记6-基于Springboot框架的Nacos服务注册报错:Application run failed

    目录 问题现象: 原因分析: 解决方法: 关于Curl的相关信息,想了解的同学可以查看我的其他文章,传送门: 问题现象: 今天在测试使用Nacos进行纯代码的方式去注册服务的时候,在启动项目时出现了报 ...

  2. gtk initialization failed可能的解决方法之一

    背景: 在CentOS宿主机上使用QEMU启动Ubuntu(或CentOS)虚拟机(.img或.qcow2)格式,这里需要xmanager和相对应的xshell来启动虚拟机窗口:链接:https:// ...

  3. SpringBoot运行显示Application run failed

    错误: Error starting ApplicationContext. To display the conditions report re-run your application with ...

  4. Application run failed问题解决

    Error starting ApplicationContext. To display the conditions report re-run your application with 'de ...

  5. Installation failed with message Invalid File:(Application Installatino Failed)

    导入一个demo 运行发现上图问题, Application Installation Failed 最后自己清理下工程就好了 参考方法: Click Build tab ---> Clean ...

  6. 严重: Dispatcher initialization failed java.lang.RuntimeException

    严重: Dispatcher initialization failed java.lang.RuntimeException: java.lang.reflect.InvocationTargetE ...

  7. 成功解决 raise RuntimeError(“The JPMML-SkLearn conversion application has failed. The Java executable

    成功解决    raise RuntimeError("The JPMML-SkLearn conversion application has failed. The Java execu ...

  8. maven 项目报错Context initialization failed

    Context initialization failed 当我对maven 项目进行clean 的时候再次打开就报错Context initialization failed 同时i显示找不到dao ...

  9. Schema initialization FAILED! Metastore state would be inconsistent !!

    这个问题是在进行 schematool -dbType mysql -initSchema的时候碰到的. 我的解决方案是: 集群中其中一个节点的hive-site.xml不小心误删了. 另外可以参考[ ...

最新文章

  1. 【python】使用python脚本将CelebA中图片按照 list_attr_celeba.txt 中属性处理(删除、复制、移动)
  2. 刻意练习:LeetCode实战 -- Task03. 移除元素
  3. 握手失败_拜托了,看完这篇别再问我什么是TCP三次握手和四次挥手
  4. Spark内核以及源码解析
  5. Knative 基本功能深入剖析:Knative Serving 之服务路由管理
  6. Android官方开发文档Training系列课程中文版:数据存储之键值对序列存储
  7. “嘿,我们又见面了!”
  8. android p获取通话记录_Android 底层的进程间同步机制
  9. 用vSphere Client去建立虚拟机报MKS的错
  10. 一篇真正教会你开发移动端页面的文章(二)
  11. Python3爬取拉钩网职位,并分析
  12. 如何快速获得城市道路智慧照明服务认证
  13. 《关键对话——如何高效能沟通》读书笔记
  14. C#支付宝支付接口H5版(手机网页支付)
  15. Bluetooth core 5.0 Generic Access Profile ---------- 模式 - BR/EDR 物理传输(physical transport)
  16. 20、JAVA进阶——集合(1)
  17. 人脸数据集(电视剧生活大爆炸)
  18. 记Http connection dropped
  19. 分分钟百万条数据的微博爬虫分析
  20. mysql 配置文件详解

热门文章

  1. ZEROC究竟是何方神圣? Leader-us 大神来的回答 Leader-us mycat的发起者
  2. pycharm vim 插件IdeaVIM
  3. babyion 加载obj模型_在vue中使用babylonjs引入3d模型,打印mesh数据正常且无报错,但未在场景中显示,请问是什么环节出现了问题?...
  4. json.stringfy()和json.parse()
  5. 用开源代码如何建立网站_糖尿病患者找到开源并建立自己的医疗设备
  6. linux 内核内核签名_24岁生日快乐,Linux内核
  7. 为什么引入devops_DevOps可以为您的文档做什么?
  8. openstack 教程_OpenStack的新提示,技巧和教程
  9. three.js 渲染器更改背景色的几种方法
  10. CSS3 响应式布局之弹性网格