Stack ExitFailure 1

被刻印的时光 ゝ 提交于 2020-03-28 06:40:48

问题


I've been trying to run stack install hsdev --stack-yaml ./Documents/hsdev.yaml, where hsdev.yaml contains

packages: []
resolver: lts-13.29
extra-deps:
- hsdev-0.3.3.4
- hdocs-0.5.3.2
- haddock-api-2.22.0
- network-3.0.1.1

This returns the error

--  While building package haddock-api-2.22.0 using:
      /home/hello/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1

I have already tried haddock-api-2.21.0, which results in the same error. I have also tried running stack install haddock-api. I am on Linux Mint 19.1 Cinnamon, if that helps.


回答1:


Turns out I was missing something. sudo apt-get install libtinfo-dev fixed the issue.




回答2:


On a fresh install of Ubuntu Bionic.

Had a similar error while trying to install Haskell:

git clone https://github.com/haskell/haskell-ide-engine --recursive

cd haskell-ide-engine

stack install

Your fix solved the problem - thanks!



来源:https://stackoverflow.com/questions/57609824/stack-exitfailure-1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!