commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.98k stars 845 forks source link

Give recommendations for how to install system libraries #2448

Open mgsloan opened 8 years ago

mgsloan commented 8 years ago

It'd be cool to recommend things like sudo apt-get install libpq-dev or even just sudo apt-cache search libpq. On windows, it should recommend something like stack exec -- pacman -S ...

From a comment on https://github.com/commercialhaskell/stack/issues/1384 by amigalemming:

You can use the pkgconfig-depends field of Cabal for showing external dependencies. An automated tool could scan available packages of Ubuntu or Debian or MSYS/Arch for the according .pc files.

sjakobi commented 8 years ago

Maybe https://github.com/erantapaa/hackage-helper could be useful here.