我已经成功安装并运行了git。
git --version
git version 2.6.1
我想现在添加gitk。我输入以下命令来安装gitk包,但它说没有可用的包。
sudo yum install git-gui gitk
返回
Loaded plugins: security
Setting up Install Process
No package git-gui available.
No package gitk available.
Nothing to do
之后,当我在命令行中键入gitk
时,它会抛出以下错误。
Application initialization failed: Can't find a usable tk.tcl in the following directories:
/usr/lib/tcl8.4/tk8.4 /usr/lib/tk8.4 /local/p4clients/pkgbuild-9867w/workspace/build/TclTk/TclTk-8.4.199.32504/RHEL5_64/DEV.STD.PTHREAD/build/private/tcl/install/lib/tk8.4 /lib/tk8.4 /usr/library /library /tk8.4.12/library
This probably means that tk wasn't installed properly.
Error in startup script: invalid command name "tk_setPalette"
while executing
"tk_setPalette background $c selectColor $selc"
(procedure "setui" line 8)
invoked from within
"setui $uicolor"
注意:我试过apt-get
,但它在系统中不起作用。在帖子中我发现yum
是我系统的正确选项。 apt-get: command not found
答案 0 :(得分:1)
我不确定您是否要安装gitk。但是下面是我用来在rhel7上安装gitk的方法
如下所示从https://packages.endpoint.com/获取端点释放rpm
cd /tmp
wget https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
yum localinstall endpoint-repo-1.7-1.x86_64.rpm
yum install git-gui gitk
答案 1 :(得分:0)
从gitk is distributed with git开始,我将专注于安装正确版本的Tcl / Tk。
git-gui package(即使它不直接适用于您的Linux发行版)至少会使用tk8.6。看起来你的tk版本有点旧了。
yum install tk