Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gitk installation not working in linux

Tags:

git

linux

github

I have successfully Git installed and running.

git --version
git version 2.6.1

I want to add gitk now. I entered the following command to install the gitk package, but it says no package available.

sudo yum install git-gui gitk

Returns

Loaded plugins: security
Setting up Install Process
No package git-gui available.
No package gitk available.
Nothing to do

After that, when I type gitk on the command line, it throws the following error.

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"

Note: I tried apt-get, but it’s not working in the system. In a post I found that YUM is the correct one for my system.

Amazon Linux: apt-get: command not found

like image 497
logan Avatar asked Oct 19 '22 20:10

logan


1 Answers

Since gitk is distributed with git, I would focus on installing the right version of Tcl/Tk.

The git-gui package (even though it is not directly applicable to your Linux distribution) would use a tk8.6 at least. It looks like your version of tk is a bit old.

yum install tk
like image 130
VonC Avatar answered Oct 31 '22 12:10

VonC