Possibly missing graphviz required dependency?

While updating graphviz as part of a system update, I saw the following in pacman’s output:

Warning: Could not load "/usr/lib/graphviz/libgvplugin_gtk.so.6" - It was found, so perhaps one of its dependents was not.  Try ldd.

So I did:

ldd /usr/lib/graphviz/libgvplugin_gdk.so.6
	linux-vdso.so.1 (0x00007ffcab920000)
	libgvc.so.6 => /usr/lib/libgvc.so.6 (0x00007fdbf194b000)
	libgdk-x11-2.0.so.0 => not found

(snipped) and so installed gtk2 which fixed that. GTK2 is listed as an optional dependency when doing pacman -Qi graphviz:

Depends On      : libltdl  gd  librsvg  libxaw  ghostscript  pango  gts  gsfonts  libnsl  libpng
Optional Deps   : mono: sharp bindings
                  guile: guile bindings [installed]
                  lua: lua bindings [installed]
                  ocaml: ocaml bindings
                  perl: perl bindings [installed]
                  python: python bindings [installed]
                  r: r bindings
                  tcl: tcl bindings [installed]
                  qt5-base: gvedit [installed]
                  gtk2: gtk output plugin [installed]
                  xterm: vimdot [installed]
Required By     : vala

Should it be a non-optional dependency or was there another way to resolve this?

System information, just in case it’s relevant.

It looks like it is just a warning that it can’t load the gtk plugin. If it the application still works without that plugin, then it probably makes sense for it to be an optional dependency.

Also, welcome to the forum!

Thanks, first time seeing something like that.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.