0

我依赖一个需要 alex 来构建的包,我还需要 ghcjs。

当我尝试运行时stack ghci

language-java-0.2.8: configure (lib)

Error:
--  While building package language-java-0.2.8 using:
      <long command>
    Process exited with code: ExitFailure 1
    Logs have been written to: /Users/LeanderK/Documents/Haskell/exemplator-java_parser/.stack-work/logs/language-java-0.2.8.log

Configuring language-java-0.2.8...
Cabal-simple_mPHDZzAJ_1.24.2.0_ghcjs-0.2.1.9007019_ghc-8.0.1: The program
'alex' version >=3.1.3 is required but it could not be found.

Warning: Build failed, but optimistically launching GHCi anyway
The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
Configuring GHCi with the following packages: exemplator-client
Using main module: 1. Package `exemplator-client' component exe:exemplator-client-exe with main-is file:         ..../app/Main.hs
Progress: 1/2<command line>: cannot satisfy -package language-java-0.2.8
(use -v for more information)

我试过:(stack build alex只是返回,没有任何输出。可能工作),stack install alex(不工作)。

的输出stack install alex

Couldn't find executable alex in directory .../.stack/snapshots/x86_64-osx/lts-7.19/ghcjs-0.2.1.9007019_ghc-8.0.1/bin/

供参考:是依赖的cabal文件,不幸的是只能在github上找到。是我的堆栈和我的cabal文件。还有一个没有去任何地方的reddit讨论。

4

0 回答 0