Answer the question
In order to leave comments, you need to log in
How to fix error when installing webview library in Golang?
I run the command:
go get github.com/zserge/webview
And I get this output:
# pkg-config --cflags -- gtk+-3.0 webkit2gtk-4.0
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
Package 'gtk+-3.0', required by 'virtual:world', not found
Package 'webkit2gtk-4.0', required by 'virtual:world', not found
pkg-config: exit status 1
gtk+
and webkit2gtk
installed. Executed echo $PKG_CONFIG_PATH
and received an empty string: Answer the question
In order to leave comments, you need to log in
You need to install "devel" packages, something like gtk+-devel and libwebkit2gtk-4.0-dev.
Different Linux distributions may have different names.
The reason for the error is that in addition to installing the packages themselves, you also need packages that at least have headers (.h) so that you can compile your project / webview.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question