MacOSX - cabal install: built failed during the building phase. The exception was: ExitFailure 1 - dist/package.conf.inplace: inappropriate type

故事扮演 提交于 2019-12-18 09:37:17

问题


using cabal; came accross this error.

did cabal install and this happened.

failed during the building phase. The exception was: ExitFailure 1

checked my log; it said:

dist/package.conf.inplace: inappropriate type

I have 0 ideas what's going on. cabal build works though. #STRANGE

CURRENTLY:

CABAL version: 1.22.0.0. Glorious Glasgow Haskell Compilation version: 7.8.4


回答1:


Possible explanation: you have upgraded GHC to 7.10, which does things a bit differently I gather, but not upgraded cabal-install. If this is the problem, running

cabal install cabal-install -w ghc-7.8.4 # or whatever other version of GHC you have

may fix the problem.




回答2:


You can get this error if you previously built your package with an older (or newer) version of Cabal and now are building with a newer (or older) version.

Not enough information to determine whether this is the problem in your case.

If it is, I think cabal clean should fix it (though I usually just rm -rf dist).



来源:https://stackoverflow.com/questions/29837198/macosx-cabal-install-built-failed-during-the-building-phase-the-exception-wa

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