运行 Git GUI 时查找 tcl.init 时出错
当我尝试启动 Git GUI 时收到以下错误消息:
愿望错误
在 init.tcl 中找不到可用的 以下目录:... [列表 目录如下,init.tcl 位于 第一个列出]
这可能意味着 Tcl 不是 安装正确。
我运行的是 Windows 7,我确信这个问题与此相关,但我不知道从哪里开始。我可以而且通常会使用 Bash 工具,但令我烦恼的是这不起作用。
我安装了msysgit包:Git-1.7.0.2-preview20100309.exe
I get the following error message when I try to start the Git GUI:
Error in Wish
Can't find a usable init.tcl in the
following directories: ... [list of
directories follows, init.tcl is in
the first one listed]This probably means that Tcl wasn't
installed properly.
I'm running Windows 7 and I'm sure this problem is related to that, but I don't know where to start. I can, and most often will, use the Bash tool, but it annoys me that this doesn't work.
I installed the msysgit package: Git-1.7.0.2-preview20100309.exe
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
问题 121 中将其报告为“问题 < code>TCL 和
NTFS
连接点,而不是 Windows 上的 Git。”(连接点 = Windows 上本地目录的符号链接)
您可以在 issue 301 进行各种测试以重新安装 msysgit(或仅限 TCL),看看问题是否仍然存在。
It was reported in issue 121 as an "issue with
TCL
andNTFS
junction points, and not Git on Windows."(junction point = symlink for local directories on Windows)
You will find in issue 301 various test to make in order to reinstall msysgit (or TCL only), to see if the problem persists.
我有同样的问题(win7 prof.32bit),当我尝试以管理员身份运行 gitk 时,我发现一切都按预期运行。
编辑:它还有助于将 git/bin/wish.exe 的权限更改为“始终以管理员身份运行”,尽管每次运行 gitk 时它都会要求提供管理员凭据。
I have the same problem (win7 prof. 32bit) and just found out that everything runs as it should, as soon as I try running gitk as administrator.
Edit: it also helps to change permissions for git/bin/wish.exe to "always run as administrator", though it'll then ask for administrator credentials any time I run gitk.
我上次在 ubuntu 11.04 中安装 ns2.35 时遇到了同样的问题。
安装ns2.35后,收到成功安装ns的消息。然后我在/.bashrc中设置路径。然后我给出了 ns 命令,它给了我与你得到的相同的错误。
问题是因为 ns 可执行文件也在 /usr 中,这是冲突的。
解决方案:
1. 通过在终端中输入以下命令转到位置 root-usr-local-bin
cd /usr/local/bin
2. 在那里您会找到 ns 文件。我们只需要通过给出以下命令来删除它
均方根
3. 就这样,你就完成了。现在你的 ns 开始成功运行。
希望这能帮助您解决问题。
快乐学习......
I faced the same problem during my last installation of ns2.35 in ubuntu 11.04.
After I install ns2.35, got message of successful installation of ns. Then I set path in /.bashrc. Then I gave ns command which gave me same error which you got.
The problem is because, ns executable is also at /usr which is conflicting.
Solution:
1. Go to location root-usr-local-bin by giving following command in terminal
cd /usr/local/bin
2. There you would find the ns file. We just need to remove it by giving following command
rm ns
3. Thats it, you are done. Now your ns starts running successfully.
Hope this would help you solve the problem.
Happy Learning.....