如何在Windows上安装regex-pcre?
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
Run Code Online (Sandbox Code Playgroud)
regex-pcre不支持Windows,至少目前regex-pcre.cabal在Windows上不能正常工作.
尝试使用regex-pcre-builtin,它与之相同regex-pcre,但捆绑了PCRE源代码.我不知道为什么作者不会将其合并regex-pcre,而是为此创建一个新包.