2016-05-07 12 views
2

は、私は、Windowsバイナリhttp://zeromq.org/distro:microsoft-windowsからzmqをインストールし実行しました(zmq依存関係を見つけることができません):Windowsにzeromq4-haskellをインストールするには?

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をインストールするには、これが必要です。助けて?

答えて

4

私はそれを解決するために管理のように思え:

  1. コピー<ZMQ>\lib\libzmq-v120-mt-4_0_4.lib<ZMQ>\lib\zmq.lib
  2. コピー<ZMQ>\bin\libzmq-v120-mt-4_0_4.dll
  3. System32\zmq.dllに実行:
cabal install zeromq4-haskell --extra-include-dirs=<ZMQ>\include --extra-lib-dirs=<ZMQ>\lib 
関連する問題