regex-pcre on Windows

為{幸葍}努か 提交于 2020-06-10 05:56:48

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/21979694/regex-pcre-on-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!