Can't install sdl2

This is probably not a bug but I still could need some support to solve this. From the package manager, I try to install sdl2. But it tells me:

The program 'pkg-config' version >=0.9.0 is required but it could not be found.

I've installed pkg-config via brew and I can install sld2 from the terminal. But then it is not available in HfM. How do I tell cabal in the package manager where to find pkg-config?

(A similar issue seems to occur when trying to install SDL, where it tells me SDL cannot be found. And here too I can install it from the terminal.) 

Can you advice how to resolve this?


Please sign in to leave a comment.