我正在运行命令:
go get github.com/zserge/webview
我得到这个输出:
# 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
在 Linux 上工作,包gtk+
和webkit2gtk
安装。请告诉我如何修复错误。
UPD:按照@Hellseher 的建议,我做echo $PKG_CONFIG_PATH
了并得到了一个空字符串: