-1

当我运行命令时,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 吗?

4

1 回答 1

2

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

捆绑包中的包来自pacmanMinGW32、MinGW64 和 MSYS2,所以它们中的大多数(就我所使用的而言)应该以mingw-w64-i686-or为前缀mingw-w64-x86_64-。有关详细信息,请参阅msys2 的官方文档。

于 2019-08-07T15:51:18.400 回答