在Cygwin上,如何从hackage安装curl?

时间:2009-06-27 16:11:42

标签: haskell cygwin libcurl ghc hackage

从Windows命令提示符

c:\>cabal install curl
Resolving dependencies...
Configuring curl-1.3.5...
cabal: Error: some packages failed to install:
curl-1.3.5 failed during the configure step. The exception was:
sh: runGenProcess: does not exist (No such file or directory)

我已经安装了Cygwin的curl-devel包,但是从Cygwin提示cabal install curl也失败了,即使我指向--extra-lib-dirs--extra-include-dirs例如

$ cabal install curl --extra-include-dirs=c:/cygwin/usr/include \
                     --extra-lib-dirs=c:/cygwin/usr/lib
Resolving dependencies...
Configuring curl-1.3.5...
[...]
configure: error: curl libraries not found, so curl package cannot be built
See `config.log' for more details.
cabal.exe: Error: some packages failed to install:
curl-1.3.5 failed during the configure step. The exception was:
exit: ExitFailure 1

以上尝试使用ghc-6.10.3,Cabal-1.6.0.3和cabal-install-0.6.2。

1 个答案:

答案 0 :(得分:1)