ffmpeg-light
ffmpeg-light copied to clipboard
Requires 'pkg-config' during installation
I'm newbie in haskell development. I've made new stack project and added these lines:
# stack.yaml
extra-deps:
- ffmpeg-light-0.12.1.0
# package.yaml
dependencies:
- ffmpeg-light
then I ran:
stack build
and got this error:
Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2: The program 'pkg-config' version >=0.9.0 is required but it could not be found.
I'm on macOS 10.13.4
I know this is an old post, but in case anyone may need this information......
Basically, you need pkg-config
to track dependencies on external C libraries. I believe you could install pkg-config
from your package manager.
I just encountered this on macOS (Catalina)
Doing brew install pkg-config
solved it for me.
Is there something we can do to the package definition to make this easier for folks, or is this a broader question of sorting out Haskell tooling in a development environment?