Windows上的regex-pcre [英] regex-pcre on Windows
本文介绍了Windows上的regex-pcre的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Windows上安装regex-pcre?
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
推荐答案
regex-pcre
不支持Windows,至少当前的 regex-pcre.cabal
在Windows上无法正常运行。
regex-pcre
doesn't support Windows, at least the current regex-pcre.cabal
doesn't work well on Windows.
尝试 regex-pcre-内置,它与 regex-pcre
相同,但是捆绑了PCRE源。
我不知道为什么作者不合并放入 regex-pcre
,但为此创建了一个新程序包。
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.
这篇关于Windows上的regex-pcre的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文