Resolving dependencies... Configuring foundation-0.0.13... Building foundation-0.0.13... Installed foundation-0.0.13 Configuring primesieve-0.1.0.1... Failed to install primesieve-0.1.0.1 Build log ( /home/builder/.cabal/logs/primesieve-0.1.0.1.log ): cabal: Entering directory '/tmp/cabal-tmp-2890/primesieve-0.1.0.1' Configuring primesieve-0.1.0.1... cabal: Missing dependencies on foreign libraries: * Missing C libraries: primesieve, primesieve This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are. cabal: Leaving directory '/tmp/cabal-tmp-2890/primesieve-0.1.0.1' cabal: Error: some packages failed to install: primesieve-0.1.0.1 failed during the configure step. The exception was: ExitFailure 1