Kann sdl2 nicht über cabal installieren

Ich versuche zu installierenhelm. Wenn ich versuche, es zu installieren, erhalte ich jedoch diese Fehlermeldung:

$ cabal install helm
Resolving dependencies...
Configuring sdl2-1.1.0...
cabal: The pkg-config package 'sdl2' version >=2.0.3 is required but it could
not be found.
Failed to install sdl2-1.1.0
cabal: Error: some packages failed to install:
helm-0.6.1 depends on sdl2-1.1.0 which failed to install.
sdl2-1.1.0 failed during the configure step. The exception was:
ExitFailure 1

Wenn ich sdl2 von selbst installiere, erhalte ich eine ähnliche Meldung.

$ cabal install sdl2
Resolving dependencies...
Configuring sdl2-1.1.0...
cabal: The pkg-config package 'sdl2' version >=2.0.3 is required but it could
not be found.
Failed to install sdl2-1.1.0
cabal: Error: some packages failed to install:
sdl2-1.1.0 failed during the configure step. The exception was:
ExitFailure 1

Ich verstehe nicht. Laut Hackage ist SDL2 in der Version 1.1, aber für die Installation ist Version 2.0.3 erforderlich? Ich habe es in einem Sandkasten versucht. Ergebnisse vonghc-pkg list sind hier, wenn Sie denken, dass sie relevant sind:http: //pastebin.com/tFrsfPF

Ich bin übrigens auf Ubuntu.

Hilfe

Antworten auf die Frage(1)

Ihre Antwort auf die Frage