You are not logged in.
Hi
currently I'm fumbling around with git in my home directory. So git has this build-in GUI named gitk. When I try to run this I get
─>gitk
/usr/bin/gitk: line 3: exec: wish: not found.
What is missing here? Seems like some package is not installed but needed by git?
Thx in advance.
Last edited by Urfaust (2009-08-22 21:38:25)
Offline
I think tk provides it. "It" being wish.
http://linux.die.net/man/1/wish
Confirmed: With packages 'tk' and 'tcl' installed I am able to launch gitk. With them removed I get the same error as you.
This thread has led to another question for me: does pacman have a "whatprovides" functionality? I believe with Fedora I could do "yum whatprovides wish" and it'd spit out "tk." I'd assume this is in pacman somewhere, anyone want to point me to it?
Last edited by bslagowski (2009-08-22 19:34:05)
Offline
What is missing here?
As the name suggests gitk - it uses the Tk toolkit, and you don't have it installed as it seems. So, install the tk package, tcl and all other dependancies.
Seems like some package is not installed but needed by git?
It is probably in optional deps.
Last edited by anrxc (2009-08-22 19:41:16)
You need to install an RTFM interface.
Offline
really look at pacman out when you install something.
(1/1) installing git [#####################] 100%
Optional dependencies for git
tk: gitk and git gui
perl-libwww: git svn
perl-term-readkey: git svn
subversion: git svn
cvsps: git cvsimport
clearly it tell you to install tk _if_ you want it.
Give what you have. To someone, it may be better than you dare to think.
Offline
really look at pacman out when you install something.
(1/1) installing git [#####################] 100% Optional dependencies for git tk: gitk and git gui perl-libwww: git svn perl-term-readkey: git svn subversion: git svn cvsps: git cvsimport
clearly it tell you to install tk _if_ you want it.
Thank you guys.
Git was installed on my machine for a longer time (as dependency, maybe by some package from aur or something). I read some articles about it recently and started fooling around. So I didn't had the pacman output in mind....;)
Offline
Please mark solved . And yes, I had to google this error as well, when I ran into it a while back.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Ran into this as well. A quick google fixed it, however, I think it would be more intuitive to provide a separate gitk package in this case.
I think that optional dependencies should be used only for parts of applications that are not necessarily needed -- as an example let's say you are installing an editor and there is an optional dependency which is a plugin to enable syntax colorization for some language.
However, it doesn't make sense to even install gitk if it can't be used with the minimal dependencies -- I assume that if I don't get gitk : command not found, it should be able to start.
Oh well, my 2 cents.
Offline
Well, gitk is not a fundamental part of the git package. I wouldn't like to have xorg as a dependency of git ...
It would be possible to put gitk into its own package and have gitk depend on git and wish, that would be perfect (but slightly uncomfortable to maintain, I guess).
Offline
Yeah exactly, that's what I meant -- make gitk a separate package.
Offline
Bug report + patch would make it happen, I'm sure.
Bug report means someone may get round to it sometime.
No bug report = nothing moves.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Sure,
http://bugs.archlinux.org/task/20669
However I don't really have the time to make a patch right now, but if nobody will be faster, I'll probably submit something during this week.
Last edited by y27 (2010-08-30 01:15:28)
Offline
OK, submitted two patches, one for the default git package and one for a git-gui package which would depend on tcl/tk and install the GUI components of git, git-gui and gitk.
Offline