加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows – 安装cygwin后Git Bash坏了

发布时间:2020-12-14 03:52:02 所属栏目:Windows 来源:网络整理
导读:在我的 Windows机器上安装Cygwin后,Git Bash坏了.每次我尝试执行命令时都会发生以下错误: sh.exe”: tput: command not found 即使重新安装Git(Bash)也没有帮助…… 解决方法 也许您需要运行cygwin设置并查找’ncurses’包并安装它. (如this thread所示,并
在我的 Windows机器上安装Cygwin后,Git Bash坏了.每次我尝试执行命令时都会发生以下错误:

sh.exe”: tput: command not found

即使重新安装Git(Bash)也没有帮助……

解决方法

也许您需要运行cygwin设置并查找’ncurses’包并安装它.

(如this thread所示,并考虑tput is part of the ncurses library)

another.anon.coward在评论中建议使用Cygwin站点的package-grep功能,这确认了ncurses安装的必要性:

package-grep for tput.

但是,OP Philipp15b在评论中提到:

Thats the problem: We’re talking about 07005 and as you say,it has got nothing to do with Cygwin. But for some reason installing Cygwin broke Git.

尝试使用msysgit提供的git-cmd.bat启动msysgit DOS会话.
它组织了PATH:

@set PATH=%git_install_root%bin;%git_install_root%mingwbin;%git_install_root%cmd;%PATH%

它可能有助于确保msysgit不受可能在路径中的其他Cygwin命令的影响.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读