The error you’re seeing is:
haskell-gi-base > The pkg-config package 'gobject-2.0' version >=2.42 is required but it could not be found.
This is saying that the haskell-gi-base
Haskell library needs the system package gobject-2.0
(the pkg-config package) to have a version greater than 2.42
, but on your system it does not.
You can probably use the pkg-config
CLI tool to figure out what version of gobject-2.0
you have on your system (assuming you have gobject-2.0
at all).
The immediate solution to your problem is to install the system package gobject-2.0
to a version greater than 2.42
, or to downgrade the version of haskell-gi-base
you’re using (with the expectation that you only have an older version of gobject-2.0
on your system, and an older version of haskell-gi-base
is usable with an older versions of gobject-2.0
).
Although if you’re just trying to play around with Haskell, I might recommend getting started with something other than haskell-gi
/ gi-gtk
. It can be a little difficult to install all required system libraries at the correct versions, along with all the Haskell libraries as sufficient versions.
Also, while haskell-gi
is really neat (and I make big use of it in one of my own projects), almost all the code is auto-generated. It doesn’t give a good idea of what programming Haskell is actually like.
(That said, if you really like the idea of playing around with Haskell and haskell-gi
, I don’t necessarily want to discourage you! It is pretty neat!)
Looks like a similar question was asked a few days ago: