【问题标题】:Error when running stack build language-plutus-core on Windows 8在 Windows 8 上运行 stack build language-plutus-core 时出错
【发布时间】:2019-08-07 15:41:30
【问题描述】:

当我运行命令stack build language-plutus-core 时,我收到以下错误:

--  While building custom Setup.hs for package cryptonite-openssl-0.7 using:
      C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_2.4.0.1_ghc-8.6
.4.exe --builddir=.stack-work\dist\e626a42b configure --with-ghc=C:\Users...
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\Projects\2019-08-07-Plutus\plutus-master\.stac
k-work\logs\cryptonite-openssl-0.7.log

    Configuring cryptonite-openssl-0.7...
    Cabal-simple_Z6RU0evB_2.4.0.1_ghc-8.6.4.exe: Missing dependencies on foreign  libraries:
    * Missing (or bad) C libraries: eay32, ssl32
    This problem can usually be solved by installing the system packages that
    provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
If the library files do exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.

有人知道如何解决这个问题吗? eay32、ssl32需要单独安装吗?

【问题讨论】:

    标签: haskell ghc cabal haskell-stack plutus


    【解决方案1】:

    考虑在您的堆栈安装中使用捆绑的 MSYS 安装这些软件包。先做stack exec bash进入MSYS,然后在那个MSYS环境中使用pacman

    捆绑的pacman 中的包来自MinGW32、MinGW64 和MSYS2,所以它们中的大多数(就我所用的)应该以mingw-w64-i686-mingw-w64-x86_64- 为前缀。有关详细信息,请参阅the official documentation for msys2

    【讨论】:

    • 谢谢,但是如何使用 pacman 安装 eay32 和 ssl32?我用过的 pacman 命令都不起作用。
    • @user1023733 我使用pacman -Ss 进行了检查,似乎 MSYS2 没有随 EAY 一起提供。需要一个更有经验的 MSYS2 人员来确认这一点——也许将该标签编辑到您的问题中?
    • @Krantz 从来没想过stack exec bash — 谢谢!我一直用stack exec mintty,它完全打开了一个单独的终端模拟器。
    猜你喜欢
    • 1970-01-01
    • 2015-06-21
    • 2019-01-28
    • 2018-10-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多