Skip to content

Instantly share code, notes, and snippets.

@cartazio
Created March 5, 2011 17:58
Show Gist options
  • Select an option

  • Save cartazio/856550 to your computer and use it in GitHub Desktop.

Select an option

Save cartazio/856550 to your computer and use it in GitHub Desktop.
regex-pcre not building on os x
carter ~ » cabal install regex-pcre -v 1 ↵
Reading available packages...
Resolving dependencies...
In order, the following would be installed:
regex-pcre-0.94.2 (new package)
Extracting
/Users/carter/.cabal/packages/hackage.haskell.org/regex-pcre/0.94.2/regex-pcre-0.94.2.tar.gz
to /var/folders/ze/zepvSy65FJukhQ7yy+kvFU+++TI/-Tmp-/regex-pcre-0.94.275071...
Configuring regex-pcre-0.94.2...
Flags chosen: splitbase=True, newbase=True
Dependency array ==0.3.0.2: using array-0.3.0.2
Dependency base ==4.3.1.0: using base-4.3.1.0
Dependency bytestring ==0.9.1.10: using bytestring-0.9.1.10
Dependency containers ==0.4.0.0: using containers-0.4.0.0
Dependency regex-base ==0.93.2: using regex-base-0.93.2
Using Cabal-1.10.1.0 compiled by ghc-7.0
Using compiler: ghc-7.0.2
Using install prefix: /Users/carter/.cabal
Binaries installed in: /Users/carter/.cabal/bin
Libraries installed in: /Users/carter/.cabal/lib/regex-pcre-0.94.2/ghc-7.0.2
Private binaries installed in: /Users/carter/.cabal/libexec
Data files installed in: /Users/carter/.cabal/share/regex-pcre-0.94.2
Documentation installed in: /Users/carter/.cabal/share/doc/regex-pcre-0.94.2
Using alex version 2.3.5 found on system at: /Users/carter/.cabal/bin/alex
Using ar found on system at: /usr/bin/ar
Using c2hs version 0.16.2 found on system at: /Users/carter/.cabal/bin/c2hs
Using cpphs version 1.11 found on system at: /Users/carter/.cabal/bin/cpphs
No ffihugs found
Using gcc version 4.2.1 found on system at: /usr/bin/gcc
Using ghc version 7.0.2 found on system at: /usr/bin/ghc
Using ghc-pkg version 7.0.2 found on system at: /usr/bin/ghc-pkg
No greencard found
Using haddock version 2.9.2 found on system at: /usr/bin/haddock
Using happy version 1.18.6 found on system at: /Users/carter/.cabal/bin/happy
No hmake found
Using hsc2hs version 0.67 found on system at: /usr/bin/hsc2hs
No hscolour found
No hugs found
No jhc found
Using ld found on system at: /usr/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
Using pkg-config version 0.25 found on system at: /usr/local/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /usr/bin/tar
No uhc found
Creating dist/build (and its parents)
Creating dist/build/autogen (and its parents)
Preprocessing library regex-pcre-0.94.2...
Creating dist/build/Text/Regex/PCRE (and its parents)
/usr/bin/hsc2hs --cc=/usr/bin/gcc --ld=/usr/bin/gcc --cflag=-m64 --cflag=-isysroot --cflag=/Developer/SDKs/MacOSX10.5.sdk --cflag=-mmacosx-version-min=10.5 --cflag=-fno-stack-protector --cflag=-m64 --cflag=-isysroot --cflag=/Developer/SDKs/MacOSX10.5.sdk --cflag=-mmacosx-version-min=10.5 --lflag=-m64 --lflag=-isysroot --lflag=/Developer/SDKs/MacOSX10.5.sdk --lflag=-mmacosx-version-min=10.5 --lflag=-fno-stack-protector --lflag=-m64 --lflag=-isysroot --lflag=/Developer/SDKs/MacOSX10.5.sdk --lflag=-mmacosx-version-min=10.5 --cflag=-D__GLASGOW_HASKELL__=700 --cflag=-Ddarwin_BUILD_OS --cflag=-Ddarwin_HOST_OS --cflag=-Dx86_64_BUILD_ARCH --cflag=-Dx86_64_HOST_ARCH --cflag=-DHAVE_PCRE_H --cflag=-DSPLIT_BASE=1 --lflag=-lpcre --cflag=-I/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/bytestring-0.9.1.10/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/base-4.3.1.0/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/include --cflag=-I/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/include --lflag=-L/Users/carter/.cabal/lib/regex-base-0.93.2/ghc-7.0.2 --lflag=-L/Users/carter/.cabal/lib/mtl-2.0.1.0/ghc-7.0.2 --lflag=-L/Users/carter/.cabal/lib/transformers-0.2.2.0/ghc-7.0.2 --lflag=-L/Users/carter/.cabal/lib/containers-0.4.0.0/ghc-7.0.2 --lflag=-L/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/bytestring-0.9.1.10 --lflag=-L/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/array-0.3.0.2 --lflag=-L/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/base-4.3.1.0 --lflag=-liconv --lflag=-L/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/integer-gmp-0.2.0.3 --lflag=-L/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/ghc-prim-0.2.0.0 --lflag=-L/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2 --lflag=-lm --lflag=-ldl --lflag=-L/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2 -o dist/build/Text/Regex/PCRE/Wrap.hs Text/Regex/PCRE/Wrap.hsc
Wrap.hsc:143:18: error: pcre.h: No such file or directory
Wrap.hsc: In function ‘main’:
Wrap.hsc:364: error: ‘PCRE_ANCHORED’ undeclared (first use in this function)
Wrap.hsc:364: error: (Each undeclared identifier is reported only once
Wrap.hsc:364: error: for each function it appears in.)
Wrap.hsc:365: error: ‘PCRE_AUTO_CALLOUT’ undeclared (first use in this function)
Wrap.hsc:366: error: ‘PCRE_CASELESS’ undeclared (first use in this function)
Wrap.hsc:367: error: ‘PCRE_DOLLAR_ENDONLY’ undeclared (first use in this function)
Wrap.hsc:368: error: ‘PCRE_DOTALL’ undeclared (first use in this function)
Wrap.hsc:369: error: ‘PCRE_EXTENDED’ undeclared (first use in this function)
Wrap.hsc:370: error: ‘PCRE_EXTRA’ undeclared (first use in this function)
Wrap.hsc:371: error: ‘PCRE_FIRSTLINE’ undeclared (first use in this function)
Wrap.hsc:372: error: ‘PCRE_MULTILINE’ undeclared (first use in this function)
Wrap.hsc:373: error: ‘PCRE_NO_AUTO_CAPTURE’ undeclared (first use in this function)
Wrap.hsc:374: error: ‘PCRE_UNGREEDY’ undeclared (first use in this function)
Wrap.hsc:375: error: ‘PCRE_UTF8’ undeclared (first use in this function)
Wrap.hsc:376: error: ‘PCRE_NO_UTF8_CHECK’ undeclared (first use in this function)
Wrap.hsc:380: error: ‘PCRE_NOTBOL’ undeclared (first use in this function)
Wrap.hsc:381: error: ‘PCRE_NOTEOL’ undeclared (first use in this function)
Wrap.hsc:382: error: ‘PCRE_NOTEMPTY’ undeclared (first use in this function)
Wrap.hsc:384: error: ‘PCRE_PARTIAL’ undeclared (first use in this function)
Wrap.hsc:387: error: ‘PCRE_ERROR_NOMATCH’ undeclared (first use in this function)
Wrap.hsc:388: error: ‘PCRE_ERROR_NULL’ undeclared (first use in this function)
Wrap.hsc:389: error: ‘PCRE_ERROR_BADOPTION’ undeclared (first use in this function)
Wrap.hsc:390: error: ‘PCRE_ERROR_BADMAGIC’ undeclared (first use in this function)
Wrap.hsc:391: error: ‘PCRE_ERROR_UNKNOWN_NODE’ undeclared (first use in this function)
Wrap.hsc:392: error: ‘PCRE_ERROR_NOMEMORY’ undeclared (first use in this function)
Wrap.hsc:393: error: ‘PCRE_ERROR_NOSUBSTRING’ undeclared (first use in this function)
Wrap.hsc:399: error: ‘PCRE_INFO_CAPTURECOUNT’ undeclared (first use in this function)
Wrap.hsc:415: error: ‘PCRE_CONFIG_UTF8’ undeclared (first use in this function)
compiling dist/build/Text/Regex/PCRE/Wrap_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c dist/build/Text/Regex/PCRE/Wrap_hsc_make.c -o dist/build/Text/Regex/PCRE/Wrap_hsc_make.o -m64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -fno-stack-protector -m64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -fno-stack-protector -m64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -D__GLASGOW_HASKELL__=700 -Ddarwin_BUILD_OS -Ddarwin_HOST_OS -Dx86_64_BUILD_ARCH -Dx86_64_HOST_ARCH -DHAVE_PCRE_H -DSPLIT_BASE=1 -I/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/bytestring-0.9.1.10/include -I/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/base-4.3.1.0/include -I/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/include -I/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/include -I/Library/Frameworks/GHC.framework/Versions/7.0.2-x86_64/usr/lib/ghc-7.0.2/include/
World file is already up to date.
cabal: Error: some packages failed to install:
regex-pcre-0.94.2 failed during the building phase. The exception was:
ExitFailure 1
@igorgue

igorgue commented Mar 23, 2011

Copy link
Copy Markdown

Did you find a fix for this?

@cartazio

Copy link
Copy Markdown
Author

yes, look at the hakyll tutorial / or its github issues page for the fix

@igorgue

igorgue commented Mar 23, 2011

Copy link
Copy Markdown

Thanks, that works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment