【问题标题】:How to install zeromq4-haskell on windows? (can't find zmq dependency )如何在 Windows 上安装 zeromq4-haskell? (找不到 zmq 依赖项)
【发布时间】:2017-03-22 20:08:44
【问题描述】:

我从 Windows 二进制文件 http://zeromq.org/distro:microsoft-windows 安装了 zmq,然后运行:

cabal install zeromq4-haskell --extra-include-dirs="F:\thirdparty\ZeroMQ4.0.4\include\" --extra-lib-dirs="F:\thirdparty\ZeroMQ4.0.4\lib\"

但我仍然缺少 zmq 依赖项:

Resolving dependencies...
Configuring zeromq4-haskell-0.6.4...
Failed to install zeromq4-haskell-0.6.4
Build log ( C:\Users\calin\AppData\Roaming\cabal\logs\zeromq4-haskell-0.6.4.log ):
Configuring zeromq4-haskell-0.6.4...
setup-Simple-Cabal-1.22.5.0-x86_64-windows-ghc-7.10.3.exe: Missing dependency
on a foreign library:
* Missing C library: zmq
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.
cabal: Error: some packages failed to install:
zeromq4-haskell-0.6.4 failed during the configure step. The exception was:
ExitFailure 1

我也尝试关注此页面,但我无法到达任何地方 http://gettingsharper.de/2015/06/23/bridging-the-worlds-with-omq/ 。我没明白他所说的 /bin 或 /lib 是什么意思。

cabal --version
cabal-install version 1.22.6.0
using version 1.22.5.0 of the Cabal library

ghci --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3

我需要这个来安装 ihaskell。帮忙?

【问题讨论】:

    标签: windows haskell zeromq


    【解决方案1】:

    看来我设法解决了:

    1. <ZMQ>\lib\libzmq-v120-mt-4_0_4.lib复制到<ZMQ>\lib\zmq.lib
    2. <ZMQ>\bin\libzmq-v120-mt-4_0_4.dll复制到System32\zmq.dll
    3. 运行:
    cabal install zeromq4-haskell --extra-include-dirs=<ZMQ>\include --extra-lib-dirs=<ZMQ>\lib
    

    【讨论】:

      猜你喜欢
      • 2015-05-26
      • 2021-12-19
      • 2018-10-04
      • 1970-01-01
      • 2020-09-23
      • 1970-01-01
      • 2019-03-09
      • 2018-07-25
      • 1970-01-01
      相关资源
      最近更新 更多