sourcegraph/go-webkit2

Can't install

nlamirault opened this issue · 4 comments

In Archlinux, i try to install, i've got an error :

go get github.com/sourcegraph/go-webkit2/webkit2
# pkg-config --cflags webkit2gtk-3.0
Package webkit2gtk-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit2gtk-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit2gtk-3.0' found
pkg-config: exit status 1

Packages installed :

local/webkit2gtk 2.8.5-1
    GTK+ Web content engine library
local/webkitgtk 2.4.9-1
    GTK+ Web content engine library
local/webkitgtk2 2.4.9-1
    GTK+ Web content engine library for GTK2

Any idea ?

changing line 9 in webview.go to the following should work

// #cgo pkg-config: webkit2gtk-4.0

Thanks @ftKnox , that helped me.

This is what I get on OS X, 10.11.3, El Capitan, when running go get...

# pkg-config --cflags javascriptcoregtk-3.0 Package javascriptcoregtk-3.0 was not found in the pkg-config search path. Perhaps you should add the directory containing 'javascriptcoregtk-3.0.pc' to the PKG_CONFIG_PATH environment variable No package 'javascriptcoregtk-3.0' found pkg-config: exit status 1

@atopala try:
Install macports
sudo port install webkit2-gtk
export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH"
change line 9 in webview.go to // #cgo pkg-config: webkit2gtk-4.0