Resolving dependencies... Starting old-locale-1.0.0.7 Starting pcre-light-0.4.1.0 Starting clock-0.8.2 Starting splitmix-0.1.0.3 Building old-locale-1.0.0.7 Building pcre-light-0.4.1.0 Building clock-0.8.2 Building splitmix-0.1.0.3 Completed old-locale-1.0.0.7 Starting utf8-string-1.0.2 Building utf8-string-1.0.2 Completed clock-0.8.2 Starting zlib-0.6.2.3 Building zlib-0.6.2.3 Completed splitmix-0.1.0.3 Starting old-time-1.1.0.3 Completed pcre-light-0.4.1.0 Starting random-1.2.0 Building random-1.2.0 Building old-time-1.1.0.3 Completed utf8-string-1.0.2 Completed old-time-1.1.0.3 Starting hscurses-1.4.2.0 Completed zlib-0.6.2.3 Completed random-1.2.0 Failed to install hscurses-1.4.2.0 Build log ( /home/builder/.cabal/logs/ghc-8.10.2/hscurses-1.4.2.0-2K6IxhGkVkkDvrfn6UyEtI.log ): cabal: Entering directory '/tmp/cabal-tmp-3557/hscurses-1.4.2.0' Configuring hscurses-1.4.2.0... checking for gcc... /usr/bin/cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/cc accepts -g... yes checking for /usr/bin/cc option to accept ISO C89... none needed checking for addnstr in -lcurses... no checking for addnstr in -lncurses... no checking for waddnwstr in -lncursesw... no checking for addnstr in -lpdcurses... no checking for waddnwstr in -lpdcursesw... no checking for iconv in -liconv... no checking for libiconv in -liconv... no checking for libiconv... no checking how to run the C preprocessor... /usr/bin/cc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking curses.h usability... no checking curses.h presence... no checking for curses.h... no checking ncurses.h usability... no checking ncurses.h presence... no checking for ncurses.h... no checking ncursesw/ncurses.h usability... no checking ncursesw/ncurses.h presence... no checking for ncursesw/ncurses.h... no checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes configure: creating ./config.status config.status: creating hscurses.buildinfo config.status: creating cbits/config.h cabal: Missing dependency on a foreign library: * Missing (or bad) header file: HSCurses.h * Missing (or bad) C library: curses 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.If the library file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. If the header file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. cabal: Leaving directory '/tmp/cabal-tmp-3557/hscurses-1.4.2.0' cabal: Error: some packages failed to install: hmp3-ng-2.12.1-1ExAsOieJx5G3XmRBhQujy depends on hmp3-ng-2.12.1 which failed to install. hscurses-1.4.2.0-2K6IxhGkVkkDvrfn6UyEtI failed during the configure step. The exception was: ExitFailure 1