Hello, I've got a problem when I want to install pcre-light on OS X, with the latest version of GHC (binary package from haskell.org).
It is not clear to me which flags to pass to ghc, to tell it to look at /opt/local/include for the pcre-light.h header. Any suggestions ? thanks, Pieter :cabal-install-0.6.0 pieter$ sudo cabal install pcre-light Password: Resolving dependencies... 'pcre-light-0.3.1' is cached. Configuring pcre-light-0.3.1... Preprocessing library pcre-light-0.3.1... Base.hsc:103:18: error: pcre.h: No such file or directory Base.hsc: In function 'main': Base.hsc:401: error: 'PCRE_ANCHORED' undeclared (first use in this function) Base.hsc:401: error: (Each undeclared identifier is reported only once Base.hsc:401: error: for each function it appears in.) Base.hsc:404: error: 'PCRE_AUTO_CALLOUT' undeclared (first use in this function) Base.hsc:407: error: 'PCRE_CASELESS' undeclared (first use in this function) Base.hsc:410: error: 'PCRE_DOLLAR_ENDONLY' undeclared (first use in this function) Base.hsc:413: error: 'PCRE_DOTALL' undeclared (first use in this function) Base.hsc:416: error: 'PCRE_DUPNAMES' undeclared (first use in this function) Base.hsc:419: error: 'PCRE_EXTENDED' undeclared (first use in this function) Base.hsc:422: error: 'PCRE_EXTRA' undeclared (first use in this function) Base.hsc:425: error: 'PCRE_FIRSTLINE' undeclared (first use in this function) Base.hsc:428: error: 'PCRE_MULTILINE' undeclared (first use in this function) Base.hsc:431: error: 'PCRE_NEWLINE_CR' undeclared (first use in this function) Base.hsc:434: error: 'PCRE_NEWLINE_CRLF' undeclared (first use in this function) Base.hsc:437: error: 'PCRE_NEWLINE_LF' undeclared (first use in this function) Base.hsc:440: error: 'PCRE_NO_AUTO_CAPTURE' undeclared (first use in this function) Base.hsc:443: error: 'PCRE_UNGREEDY' undeclared (first use in this function) Base.hsc:446: error: 'PCRE_UTF8' undeclared (first use in this function) Base.hsc:449: error: 'PCRE_NO_UTF8_CHECK' undeclared (first use in this function) Base.hsc:621: error: 'PCRE_NOTBOL' undeclared (first use in this function) Base.hsc:624: error: 'PCRE_NOTEOL' undeclared (first use in this function) Base.hsc:627: error: 'PCRE_NOTEMPTY' undeclared (first use in this function) Base.hsc:633: error: 'PCRE_PARTIAL' undeclared (first use in this function) Base.hsc:631: error: 'PCRE_ERROR_NOMATCH' undeclared (first use in this function) Base.hsc:634: error: 'PCRE_ERROR_NULL' undeclared (first use in this function) Base.hsc:637: error: 'PCRE_ERROR_BADOPTION' undeclared (first use in this function) Base.hsc:640: error: 'PCRE_ERROR_BADMAGIC' undeclared (first use in this function) Base.hsc:643: error: 'PCRE_ERROR_UNKNOWN_NODE' undeclared (first use in this function) Base.hsc:646: error: 'PCRE_ERROR_NOMEMORY' undeclared (first use in this function) Base.hsc:649: error: 'PCRE_ERROR_NOSUBSTRING' undeclared (first use in this function) Base.hsc:652: error: 'PCRE_ERROR_MATCHLIMIT' undeclared (first use in this function) Base.hsc:655: error: 'PCRE_ERROR_CALLOUT' undeclared (first use in this function) Base.hsc:658: error: 'PCRE_ERROR_BADUTF8' undeclared (first use in this function) Base.hsc:661: error: 'PCRE_ERROR_BADUTF8_OFFSET' undeclared (first use in this function) Base.hsc:664: error: 'PCRE_ERROR_PARTIAL' undeclared (first use in this function) Base.hsc:667: error: 'PCRE_ERROR_BADPARTIAL' undeclared (first use in this function) Base.hsc:670: error: 'PCRE_ERROR_INTERNAL' undeclared (first use in this function) Base.hsc:673: error: 'PCRE_ERROR_BADCOUNT' undeclared (first use in this function) Base.hsc:676: error: 'PCRE_ERROR_DFA_UITEM' undeclared (first use in this function) Base.hsc:679: error: 'PCRE_ERROR_DFA_UCOND' undeclared (first use in this function) Base.hsc:682: error: 'PCRE_ERROR_DFA_UMLIMIT' undeclared (first use in this function) Base.hsc:685: error: 'PCRE_ERROR_DFA_WSSIZE' undeclared (first use in this function) Base.hsc:688: error: 'PCRE_ERROR_DFA_RECURSE' undeclared (first use in this function) Base.hsc:691: error: 'PCRE_ERROR_RECURSIONLIMIT' undeclared (first use in this function) Base.hsc:665: error: 'PCRE_INFO_OPTIONS' undeclared (first use in this function) Base.hsc:668: error: 'PCRE_INFO_SIZE' undeclared (first use in this function) Base.hsc:671: error: 'PCRE_INFO_CAPTURECOUNT' undeclared (first use in this function) Base.hsc:674: error: 'PCRE_INFO_BACKREFMAX' undeclared (first use in this function) Base.hsc:677: error: 'PCRE_INFO_FIRSTBYTE' undeclared (first use in this function) Base.hsc:680: error: 'PCRE_INFO_FIRSTCHAR' undeclared (first use in this function) Base.hsc:683: error: 'PCRE_INFO_FIRSTTABLE' undeclared (first use in this function) Base.hsc:686: error: 'PCRE_INFO_LASTLITERAL' undeclared (first use in this function) Base.hsc:689: error: 'PCRE_INFO_NAMEENTRYSIZE' undeclared (first use in this function) Base.hsc:692: error: 'PCRE_INFO_NAMECOUNT' undeclared (first use in this function) Base.hsc:695: error: 'PCRE_INFO_NAMETABLE' undeclared (first use in this function) Base.hsc:698: error: 'PCRE_INFO_STUDYSIZE' undeclared (first use in this function) Base.hsc:701: error: 'PCRE_INFO_DEFAULT_TABLES' undeclared (first use in this function) Base.hsc:690: error: 'PCRE_CONFIG_UTF8' undeclared (first use in this function) Base.hsc:693: error: 'PCRE_CONFIG_NEWLINE' undeclared (first use in this function) Base.hsc:696: error: 'PCRE_CONFIG_LINK_SIZE' undeclared (first use in this function) Base.hsc:699: error: 'PCRE_CONFIG_POSIX_MALLOC_THRESHOLD' undeclared (first use in this function) Base.hsc:702: error: 'PCRE_CONFIG_MATCH_LIMIT' undeclared (first use in this function) Base.hsc:705: error: 'PCRE_CONFIG_STACKRECURSE' undeclared (first use in this function) Base.hsc:708: error: 'PCRE_CONFIG_UNICODE_PROPERTIES' undeclared (first use in this function) Base.hsc:711: error: 'PCRE_CONFIG_MATCH_LIMIT_RECURSION' undeclared (first use in this function) Base.hsc:724: error: 'PCRE_EXTRA_STUDY_DATA' undeclared (first use in this function) Base.hsc:727: error: 'PCRE_EXTRA_MATCH_LIMIT' undeclared (first use in this function) Base.hsc:730: error: 'PCRE_EXTRA_CALLOUT_DATA' undeclared (first use in this function) Base.hsc:733: error: 'PCRE_EXTRA_TABLES' undeclared (first use in this function) Base.hsc:736: error: 'PCRE_EXTRA_MATCH_LIMIT_RECURSION' undeclared (first use in this function) compiling dist/build/Text/Regex/PCRE/Light/Base_hsc_make.c failed command was: /usr/bin/gcc -c -D__GLASGOW_HASKELL__=610 -I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.1/bytestring-0.9.1.4/include -I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.1/base-4.0.0.0/include -I/Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.1/include -IPAPI_INCLUDE_DIR dist/build/Text/Regex/PCRE/Light/Base_hsc_make.c -o dist/build/Text/Regex/PCRE/Light/Base_hsc_make.o cabal: Error: some packages failed to install: pcre-light-0.3.1 failed during the building phase. The exception was: exit: ExitFailure 1 -- Pieter Laeremans <[EMAIL PROTECTED]> "The future is here. It's just not evenly distributed yet." W. Gibson _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe