You are not logged in.

#1 2009-08-22 19:23:08

Urfaust
Member
From: Germany
Registered: 2009-01-30
Posts: 164

[Solved] Problems with gitk

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

#2 2009-08-22 19:31:04

bslagowski
Member
Registered: 2008-02-23
Posts: 102

Re: [Solved] Problems with gitk

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

#3 2009-08-22 19:38:46

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: [Solved] Problems with gitk

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

#4 2009-08-22 19:41:51

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [Solved] Problems with gitk

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

#5 2009-08-22 21:08:07

Urfaust
Member
From: Germany
Registered: 2009-01-30
Posts: 164

Re: [Solved] Problems with gitk

wonder wrote:

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

#6 2009-08-22 21:37:29

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: [Solved] Problems with gitk

Please mark solved smile. 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

#7 2010-08-29 18:07:48

y27
Member
Registered: 2009-05-27
Posts: 147
Website

Re: [Solved] Problems with gitk

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

#8 2010-08-29 18:37:06

mir
Member
Registered: 2010-08-25
Posts: 59

Re: [Solved] Problems with gitk

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

#9 2010-08-29 19:44:45

y27
Member
Registered: 2009-05-27
Posts: 147
Website

Re: [Solved] Problems with gitk

Yeah exactly, that's what I meant -- make gitk a separate package.

Offline

#10 2010-08-30 00:58:15

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: [Solved] Problems with gitk

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

#11 2010-08-30 01:15:17

y27
Member
Registered: 2009-05-27
Posts: 147
Website

Re: [Solved] Problems with gitk

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

#12 2010-09-01 23:51:51

y27
Member
Registered: 2009-05-27
Posts: 147
Website

Re: [Solved] Problems with gitk

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

Board footer

Powered by FluxBB