我的操作系统是Windows 7,安装了Haskell平台6.12。
HaXml和其他依赖已经安装好了。
我尝试在下载后执行以下操作:
runHaskell Setup.hs configure
并且:
runHaskell Setup.hs configure
--extra-include-dirs=F:/language/langer/haskell/encoding-0.6.3
--extra-lib-dirs=F:/language/langer/haskell/encoding-0.6.3
并使用Cabal:
cabal install encoding
但以上所有内容均打印:
* Missing header file: system_encoding.h
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.
我已经在Cygwin、MINGW和MSDOC上尝试过了,但都失败了。 在大量搜索后,我发现this(haskll-cafe和google-group具有相同的内容) 他们提到了“langinfo.h”,我在Cygwin的“/usr/include”目录下找到了这个文件。但仍然无法工作。 有人在Windows上成功安装了encoding-0.6.3吗?
extralibs
从$inst$\libs\
复制到$inst$
中($inst$
是 Haskell 平台安装的位置)。 - Dario