webview: webkit2gtk-4.0 was not found

What OS are you using (uname -a, or Windows version)?

Linux tr4 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux

What programming language are you using (C/C++/Go/Rust)?

clang version 8.0.0-svn351023-1~exp1+0~20190113213241.1006~1.gbp8ac697 (trunk) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin

What did you expect to see and what you saw instead?

steve@tr4:~/go$ go get github.com/zserge/webview

pkg-config --cflags – gtk±3.0 webkit2gtk-4.0

Package webkit2gtk-4.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `webkit2gtk-4.0.pc’ to the PKG_CONFIG_PATH environment variable No package ‘webkit2gtk-4.0’ found pkg-config: exit status 1

Could you provide instructions on how to resolve this on Debian?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 6
  • Comments: 16 (2 by maintainers)

Most upvoted comments

libwebkit2gtk-4.0-dev should provide the pkg-config file (see here):

sudo apt-get install libwebkit2gtk-4.0-dev

fixed installing this https://fedora.pkgs.org/29/fedora-updates-x86_64/webkit2gtk3-devel-2.22.7-1.fc29.x86_64.rpm.html

Fedora 31, i fix issue with sudo dnf install webkit2gtk3-devel.x86_64

The one-liner that resolved the issue for me

sudo dnf install webkit2gtk3-devel