Can't install sdl2 via cabal

I'm trying to install helm. When I try to install it, I get this error:

$ 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

When I go to install sdl2 myself, I get a similar message.

$ 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

I do not understand. According to Hackage, sdl2 has version 1.1, but version 2.0.3 is required to install it? I tried this in the sandbox. The results are ghc-pkg listhere if you think they are relevant: http://pastebin.com/tFrsfPFe

I'm on Ubuntu, by the way.

Help?

+5
source share
2 answers

, ( ) , , PKG_CONFIG_PATH (sdl2.pc, /usr/local/lib/pkgconfig ). pkg-config ('/usr/lib/pkgconfig' '/usr/share/pkgconfig'), sdl.pc , . echo $PKG_CONFIG_PATH

, export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ( , sdl2.pc)

+4

All Articles