5

I want to install gitg (0.3.3) and followed the steps explained here: How to install gitg 0.3.3 on Ubuntu 14.04?

...but I seem to miss dependencies, that are not in the repositories of the package manager.

configure: error: Package requirements (
    gthread-2.0 >= 2.38
    glib-2.0 >= 2.38
    gobject-2.0 >= 2.38
    gmodule-2.0 >= 2.38
    gio-2.0 >= 2.38
    gio-unix-2.0 >= 2.38
    gobject-introspection-1.0 >= 0.10.1
    libgit2-glib-1.0 >= 0.0.18
    gtk+-3.0 >= 3.12.0
    webkit2gtk-3.0 >= 2.2
    gee-0.8
    json-glib-1.0
) were not met:

No package 'gthread-2.0' found
No package 'glib-2.0' found
No package 'gobject-2.0' found
No package 'gmodule-2.0' found
No package 'gio-2.0' found
No package 'gio-unix-2.0' found
No package 'gobject-introspection-1.0' found
No package 'libgit2-glib-1.0' found
No package 'gtk+-3.0' found
No package 'webkit2gtk-3.0' found
No package 'gee-0.8' found
No package 'json-glib-1.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBGITG_CFLAGS
and LIBGITG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I don't understand the comments at the end and also I am not sure, if there is a better way than google every single dependency and how to install it.

I've tried this with the first two (gthread, glib) and learned, that the names for the packages differ in the package manager - for instance glib2.0 is called libglib2.0 and from 11 possible packages with each different postfixes (e.g. -bin) there are 4 installed (I have version 2.0 but I need version 2.38 or greater, right?).

To find out, what packages for one dependency I need and that for all 12 dependencies is too komplex for me, "just to install a program".

Any help is appreciated.

  • Can you not just do sudo apt-get install gitg? – saiarcot895 Feb 26 '15 at 16:19
  • 2
    the version from the official repository is old (0.2.7). Developer writes: "Install gitg from package repositories of your Gnu/Linux distribution. For Debian based systems using apt-get package management: apt-get install gitg For RPM based systems using yum package management: yum install gitg Note: The gitg installed thus will be an older version written in C and differs heavily in code and features from the gitg available from git master." – Breaker222 Feb 26 '15 at 17:05
  • Did you manage to install this? I'm running into the same issue. – bool.dev Mar 17 '16 at 14:01
  • unfortunately not. For git management I switched to smartgit / webstorm – Breaker222 Mar 18 '16 at 16:49
4

One way to get most of the build dependencies would be to run sudo apt-get build-dep gitg. This would install all of the build dependencies needed to compile gitg.

However, note that because of the old version (0.2.7), there might be some dependencies installed that aren't needed, and some dependencies that are needed but not installed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.