如何在 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
regex-pcre
不支持Windows,至少目前不支持regex-pcre.cabal
在 Windows 上效果不佳。
Try 正则表达式 PCR 内置 http://hackage.haskell.org/package/regex-pcre-builtin,它与regex-pcre
,但捆绑了 PCRE 源。
不知道作者为什么不把它合并到regex-pcre
,但为此创建一个新包。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)