installing webkitgtk3: webkitgtk-3.0 version >=1.8 not found

Hello, $ cabal install webkitgtk3 Resolving dependencies... [1 of 2] Compiling SetupWrapper ( /var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/SetupWrapper.hs, /var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/dist/setup/SetupWrapper.o ) [2 of 2] Compiling Main ( /var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/Setup.hs, /var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/dist/setup/Main.o ) Linking /var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/dist/setup/setup ... [1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o ) [2 of 2] Compiling Main ( SetupMain.hs, dist/setup-wrapper/Main.o ) Linking dist/setup-wrapper/setup ... Configuring webkitgtk3-0.12.6.1... setup: The pkg-config package webkitgtk-3.0 version >=1.8 is required but it could not be found. Failed to install webkitgtk3-0.12.6.1 cabal: Error: some packages failed to install: webkitgtk3-0.12.6.1 failed during the configure step. The exception was: ExitFailure 1 What's going on there?

Looks like you haven't got the C libraries for webkitgtk-3.0 installed (or if you do, you've got version < 1.8). - ocharles

On Thu, Apr 17, 2014 at 7:52 AM, Blue Glacier
setup: The pkg-config package webkitgtk-3.0 version >=1.8 is required but it could not be found.
Note that in many Linux distributions there is a distinction between runtime and development packages. On a Red Hat-flavored system this will usually be a foo-devel package; on a Debian-derived system it looks more like libfoo-dev. You'll have to consult your distribution's package manager to find the right package name. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Blue Glacier wrote:
Hello, $ cabal install webkitgtk3 Resolving dependencies... [1 of 2] Compiling SetupWrapper (
[/var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/SetupWrapper.hs,
[/var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/dist/setup/SetupWrapper.o
[) [2 of 2] Compiling Main (
[/var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/Setup.hs,
[/var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/dist/setup/Main.o
[) Linking
/var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/dist/setup/setup
... [1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, [dist/setup-wrapper/Gtk2HsSetup.o ) [2 of 2] Compiling Main ( SetupMain.hs, [dist/setup-wrapper/Main.o ) Linking dist/setup-wrapper/setup ... Configuring webkitgtk3-0.12.6.1... setup: The pkg-config package webkitgtk-3.0 version >=1.8 is required but it could not be found. Failed to install webkitgtk3-0.12.6.1 cabal: Error: some packages failed to install: webkitgtk3-0.12.6.1 failed during the configure step. The exception was: ExitFailure 1
What's going on there?
The message
setup: The pkg-config package webkitgtk-3.0 version >=1.8 is required but it could not be found.
refers to the OS package, that the Haskell package depends on. You need to install (the development version of) webkitgtk-3.0 using the OS package manager. On my system (Ubuntu) this is done like this:
sudo apt-get install libwebkitgtk-3.0-dev
HTH Ben -- "Make it so they have to reboot after every typo." -- Scott Adams

Hello, thanks. I am still very confused and I don't understand what the difference between webkitgtk3 and webkitgtk-3.0 is and why one requires the other as dependency. I found webkit-gtk3 on macports (I am using a mac), but this did not help. I found webkit-gtk-3-devel and tried to install it, but macports says: Error: webkit-gtk3-devel is not supported for this installation of MacPorts. It requires libc++ be selected as your C++ runtime. Please use webkit-gtk3-devel-2.0 instead So i tried this, but: $ sudo port install webkit-gtk3-devel-2.0 Error: Port webkit-gtk3-devel-2.0 not found I need webkit-gtk-xy-whatever to install leksah. Does anyone know how to solve these dependencies on a Mac? Has anyone made it to install leksah on an Apple Computer? - Blue Glacier
Blue Glacier wrote:
Hello, $ cabal install webkitgtk3 Resolving dependencies... [1 of 2] Compiling SetupWrapper (
[/var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/SetupWrapper.hs,
[/var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/dist/setup/SetupWrapper.o
[) [2 of 2] Compiling Main (
[/var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/Setup.hs,
[/var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/dist/setup/Main.o
[) Linking
/var/folders/27/1y1549hn7pqfvvd0zv7znvlm0000gn/T/webkitgtk3-0.12.6.1-5804/webkitgtk3-0.12.6.1/dist/setup/setup
... [1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, [dist/setup-wrapper/Gtk2HsSetup.o ) [2 of 2] Compiling Main ( SetupMain.hs, [dist/setup-wrapper/Main.o ) Linking dist/setup-wrapper/setup ... Configuring webkitgtk3-0.12.6.1... setup: The pkg-config package webkitgtk-3.0 version >=1.8 is required but it could not be found. Failed to install webkitgtk3-0.12.6.1 cabal: Error: some packages failed to install: webkitgtk3-0.12.6.1 failed during the configure step. The exception was: ExitFailure 1
What's going on there?
The message
setup: The pkg-config package webkitgtk-3.0 version >=1.8 is required but it could not be found.
refers to the OS package, that the Haskell package depends on. You need to install (the development version of) webkitgtk-3.0 using the OS package manager. On my system (Ubuntu) this is done like this:
sudo apt-get install libwebkitgtk-3.0-dev
HTH Ben -- "Make it so they have to reboot after every typo." -- Scott Adams
_______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries

On Fri, Apr 18, 2014 at 9:16 AM, Blue Glacier
thanks. I am still very confused and I don't understand what the difference between webkitgtk3 and webkitgtk-3.0 is and why one requires the other as dependency.
Many Haskell libraries are bindings to C libraries. Those libraries have to come from somewhere else; Cabal cannot operate your system package manager for you, or even figure out which of several you might be using. pkg-config... think of it as the C version of ghc-pkg. It searches a registry of installed C library packages, and can report details needed to build something that needs to use those packages. cabal knows how to ask pkg-config to search the registry, but not how something in that registry maps to some package name in some system package manager. I found webkit-gtk3 on macports (I am using a mac), but this did not help.
I found webkit-gtk-3-devel and tried to install it, but macports says:
You don't use -devel packages on a Mac; that's a Linux-ism. In MacPorts, a -devel package is an alpha or beta test package and should probably be avoided unless you specifically intend to help test a pending upgrade. What does `pkg-config --cflags webkitgtk-3.0` in a terminal window say?
*Error: webkit-gtk3-devel is not supported for this installation of MacPorts. It requires libc++ be selected as your C++ runtime. Please use webkit-gtk3-devel-2.0 instead*
Apple changed the C++ stuff in Mavericks; this breaks a rather large amount of stuff, and requires that alternative packages be used for some things. :/ But since you should not be using -devel packages and you aren't on Mavericks, you can ignore this package. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
participants (4)
-
Ben Franksen
-
Blue Glacier
-
Brandon Allbery
-
Oliver Charles