3

I'm running Ubuntu 18.04.4 LTS

When running

pkg-config --cflags gtk+-3.0 I get the following error -

Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found

I've tried installing missing packages (sudo apt-get install build-essential libgtk-3-dev ), as per pkg-config not finding gtk+-3.0, however when running

dpkg -l libgtk* | grep -e '^i' | grep -e 'libgtk-*[0-9]' I still get zsh: no matches found: libgtk* with the same error still happening.

I'm unable to download certain go packages due to this issue - does anyone have any ideas?

N0rbert
  • 103,263

1 Answers1

3

Use search for gtk+-3.0.pc on https://packages.ubuntu.com and then execute

sudo apt-get install libgtk-3-dev

When all packages installed you can try to reinstall pkg-config, and then manually raise pkg-config trigger/hook by

sudo apt-get install --reinstall pkg-config
sudo /usr/share/pkg-config-dpkghook update

and then retry with

pkg-config --cflags gtk+-3.0
N0rbert
  • 103,263