“Missing dependency on a foreign library”Troubleshooting
This error message is particularly annoying:
Configuring cryptonite-openssl-0.6... Cabal-simple_mPHDZzAJ_184.108.40.206_ghc-8.0.2: Missing dependency on a foreign library: * Missing C library: crypto This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is.
Here we compile the list of libraries and corresponding distro packages so that you would know what package you need to install to get a particular library.
This one usually appears on Windows. The solution is to install OpenSSL (here's an installer for Windows) and point GHC to it: