我正在尝试在我的项目中使用’import Text.
XML.HXT.Curl’,这样我就可以访问在线文件(一些xml文件).
所以我得到的错误是:
Could not find module `Text.XML.HXT.Curl': Use -v to see a list of the files searched for.
我试过了 :
:! cabal install curl
但我得到一个错误,它必须在unix或cygwin上,所以我继续安装cygwin,现在它说:
checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. cabal: Error: some packages Failed to install: curl-1.3.7 Failed during the configure step. The exception was: ExitFailure 77 :! gcc -version Access is denied
我尝试下载curl包并使用cmd:runHaskell Setup.hs configure进行安装,但是我得到了这个:
Setup.hs: Missing dependency on a foreign library: Missing C library: curl This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version)
尝试在cygwin中安装gcc,g,libcurl,make仍然失败.
尝试安装mingw / mysis,我也失败了.关于curl / curl.h缺失的东西.
有没有人成功,可以告诉我他是怎么做到的?