>> Step 1 - configuring regex-posix-0.92 This links to the standard c library version of regular expressions. The corresponding c header file is regex.h and there is a chance you will need to edit the end of the regex-posix.cabal file to find the include directory and/or library. Configuring regex-posix-0.92... configure: Dependency regex-base>=0.80: using regex-base-0.91 configure: Dependency base>=2.0: using base-2.0 configure: Using install prefix: /home/user2 configure: Binaries installed in: /home/user2/bin configure: Libraries installed in: /home/user2/lib/regex-posix-0.92/ghc-6.6 configure: Private binaries installed in: /home/user2/libexec configure: Data files installed in: /home/user2/share/regex-posix-0.92 configure: Documentation installed in: /home/user2/share/doc/regex-posix-0.92 configure: Using compiler: /usr/bin/ghc configure: Compiler flavor: GHC configure: Compiler version: 6.6 configure: Using package tool: /usr/bin/ghc-pkg configure: Using alex version 2.1.0 found on system at: /usr/bin/alex configure: Using ar found on system at: /usr/bin/ar configure: No c2hs found configure: Using cpphs version 0.7 found on system at: /usr/bin/cpphs configure: No ffihugs found configure: Using ghc version 6.6 found on system at: /usr/bin/ghc configure: Using ghc-pkg version 6.6 found on system at: /usr/bin/ghc-pkg configure: No greencard found configure: Using haddock version 0.8 found on system at: /usr/bin/haddock configure: Using happy version 1.16 found on system at: /usr/bin/happy configure: No hmake found configure: Using hsc2hs version 0.66 found on system at: /usr/bin/hsc2hs configure: Using hscolour version 1.8 found on system at: /usr/local/bin/HsColour configure: No hugs found configure: No jhc found configure: Using ld found on system at: /usr/bin/ld configure: No nhc found configure: No pfesetup found configure: Using ranlib found on system at: /usr/bin/ranlib configure: Using tar found on system at: /bin/tar >> Step 2 - building regex-posix-0.92 This links to the standard c library version of regular expressions. The corresponding c header file is regex.h and there is a chance you will need to edit the end of the regex-posix.cabal file to find the include directory and/or library. Preprocessing library regex-posix-0.92... Wrap.hsc:83:32: error: HsRegexPosixConfig.h: No such file or directory Wrap.hsc:95:25: error: regex/regex.h: No such file or directory Wrap.hsc: In function 'main': Wrap.hsc:367:0: error: 'REG_NOTBOL' undeclared (first use in this function) Wrap.hsc:367:0: error: (Each undeclared identifier is reported only once Wrap.hsc:367:0: error: for each function it appears in.) Wrap.hsc:368:0: error: 'REG_NOTEOL' undeclared (first use in this function) Wrap.hsc:372:0: error: 'REG_EXTENDED' undeclared (first use in this function) Wrap.hsc:373:0: error: 'REG_ICASE' undeclared (first use in this function) Wrap.hsc:374:0: error: 'REG_NOSUB' undeclared (first use in this function) Wrap.hsc:375:0: error: 'REG_NEWLINE' undeclared (first use in this function) Wrap.hsc:381:0: error: 'REG_NOMATCH' undeclared (first use in this function) Wrap.hsc:382:0: error: 'REG_BADBR' undeclared (first use in this function) Wrap.hsc:383:0: error: 'REG_BADPAT' undeclared (first use in this function) Wrap.hsc:384:0: error: 'REG_BADRPT' undeclared (first use in this function) Wrap.hsc:385:0: error: 'REG_ECOLLATE' undeclared (first use in this function) Wrap.hsc:386:0: error: 'REG_ECTYPE' undeclared (first use in this function) Wrap.hsc:387:0: error: 'REG_EESCAPE' undeclared (first use in this function) Wrap.hsc:388:0: error: 'REG_ESUBREG' undeclared (first use in this function) Wrap.hsc:389:0: error: 'REG_EBRACK' undeclared (first use in this function) Wrap.hsc:390:0: error: 'REG_EPAREN' undeclared (first use in this function) Wrap.hsc:391:0: error: 'REG_EBRACE' undeclared (first use in this function) Wrap.hsc:392:0: error: 'REG_ERANGE' undeclared (first use in this function) Wrap.hsc:393:0: error: 'REG_ESPACE' undeclared (first use in this function) Wrap.hsc:424:0: error: 'regex_t' undeclared (first use in this function) Wrap.hsc:458:0: error: expected specifier-qualifier-list before 'regex_t' Wrap.hsc:458:0: error: expected ';' before ')' token Wrap.hsc:458:0: error: expected statement before ')' token Wrap.hsc:461:0: error: 'regmatch_t' undeclared (first use in this function) Wrap.hsc:487:0: error: expected specifier-qualifier-list before 'regmatch_t' Wrap.hsc:487:0: error: expected ';' before ')' token Wrap.hsc:487:0: error: expected statement before ')' token Wrap.hsc:487:0: error: 'regoff_t' undeclared (first use in this function) Wrap.hsc:487:0: error: expected expression before 'int' Wrap.hsc:487:0: error: expected ')' before numeric constant Wrap.hsc:487:0: error: expected ')' before numeric constant Wrap.hsc:488:0: error: expected specifier-qualifier-list before 'regmatch_t' Wrap.hsc:488:0: error: expected ';' before ')' token Wrap.hsc:488:0: error: expected statement before ')' token Wrap.hsc:488:0: error: expected expression before 'int' Wrap.hsc:488:0: error: expected ')' before numeric constant Wrap.hsc:488:0: error: expected ')' before numeric constant Wrap.hsc:502:0: error: expected specifier-qualifier-list before 'regex_t' Wrap.hsc:502:0: error: expected ';' before ')' token Wrap.hsc:502:0: error: expected statement before ')' token compiling dist/build/Text/Regex/Posix/Wrap_hsc_make.c failed command was: /usr/lib/ghc-6.6/bin/ghc-6.6 -c -Iinclude -DHAVE_REGEX_H dist/build/Text/Regex/Posix/Wrap_hsc_make.c -o dist/build/Text/Regex/Posix/Wrap_hsc_make.o >> Terminated due to an error.