如何在windows中安装haskell openid包

如何在windows中安装haskell openid包,windows,haskell,openid,openssl,Windows,Haskell,Openid,Openssl,haskell的“openid”包依赖于需要openssl的HsOpenSSL和nano hmac包。我已在C:\openssl\目录中编译了MinGW的openssl,并使用以下命令安装了openid包: cabal install openid --extra-include-dirs=C:\OpenSSL\outinc --extra-lib-dirs=C:\OpenSSL\out 当我试图用这个包编译haskell程序时,我收到了很多链接错误 test.hs: import Netwo

haskell的“openid”包依赖于需要openssl的HsOpenSSL和nano hmac包。我已在C:\openssl\目录中编译了MinGW的openssl,并使用以下命令安装了openid包:

cabal install openid --extra-include-dirs=C:\OpenSSL\outinc --extra-lib-dirs=C:\OpenSSL\out
当我试图用这个包编译haskell程序时,我收到了很多链接错误

test.hs:

import Network.OpenID

main = print "ok"
ghc——进行测试。hs:

Linking test.exe ...
C:\OpenSSL\out/libcrypto.a(m_sha1.o):m_sha1.c:(.text+0x60): multiple definition of `EVP_sha1'
C:\OpenSSL\out/libeay32.a(deegs01228.o):(.text+0x0): first defined here
C:\OpenSSL\out/libcrypto.a(m_sha1.o):m_sha1.c:(.text+0x100): multiple definition of `EVP_sha256'
C:\OpenSSL\out/libeay32.a(deegs01230.o):(.text+0x0): first defined here
.....
C:\OpenSSL\out/libssl.a(ssl_lib.o):ssl_lib.c:(.text+0x2d4): undefined reference to `X509_VERIFY_PARAM_set_purpose'
C:\OpenSSL\out/libssl.a(ssl_lib.o):ssl_lib.c:(.text+0x2f1): undefined reference to `X509_VERIFY_PARAM_set_purpose'
C:\OpenSSL\out/libssl.a(ssl_lib.o):ssl_lib.c:(.text+0x314): undefined reference to `X509_VERIFY_PARAM_set_trust'
.....
collect2: ld returned 1 exit status

我做错了什么?

我怀疑某个地方可能存在版本不匹配。请尝试在此处使用OpenSSL的预编译二进制文件:

我在这里得到了使用最新版本的HsOpenSSL的说明:(事实上,我与维护人员一起工作,使这些说明在不需要修补软件包的情况下工作。)