ffmpeg-light icon indicating copy to clipboard operation
ffmpeg-light copied to clipboard

Requires 'pkg-config' during installation

Open oluckyman opened this issue 6 years ago • 3 comments

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

oluckyman avatar Jun 19 '18 11:06 oluckyman

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.

Krantz-XRF avatar Jul 02 '19 03:07 Krantz-XRF

I just encountered this on macOS (Catalina) Doing brew install pkg-config solved it for me.

jcberentsen avatar Apr 23 '20 13:04 jcberentsen

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?

acowley avatar Apr 23 '20 16:04 acowley