Question

How can I install regex-pcre on Windows?

cabal install regex-pcre
Resolving dependencies...
Configuring regex-pcre-0.94.4...
cabal: Missing dependency on a foreign library:
* Missing C library: pcre
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.
Failed to install regex-pcre-0.94.4
cabal: Error: some packages failed to install:
regex-pcre-0.94.4 failed during the configure step. The exception was:
ExitFailure 1
Was it helpful?

Solution

regex-pcre doesn't support Windows, at least the current regex-pcre.cabal doesn't work well on Windows.

Try regex-pcre-builtin, it's the same as regex-pcre, but with PCRE sources bundled in. I don't know why the author doesn't merge it into regex-pcre, but creating a new package for this.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top