error when updating cabal

馋奶兔 提交于 2020-01-14 13:25:08

问题


I cannot update cabal on windows seven. When running cabal install cabal-install, I get the following error:

Linking C:\Users\sberg\AppData\Local\Temp\Cabal-1.18.1.2-10956\Cabal-1.18.1.2\dist\setup\setup.exe ...
Configuring Cabal-1.18.1.2...
setup.exe: does not exist
Failed to install Cabal-1.18.1.2
cabal: Error: some packages failed to install:
Cabal-1.18.1.2 failed during the configure step. The exception was:
ExitFailure 1
cabal-install-1.18.0.2 depends on Cabal-1.18.1.2 which failed to install.

I could not find any information on haskellwiki/cabal faq. Am I missing something? I am using the version 2013.2.0.0 of the haskell platform for windows.


回答1:


I had the same problem, tried to run it through MSYS but it did not work for me.

Solution for me was to modify the %PATH% environment variable to only keep the standard Windows directories and the Haskell ones.

I suppose the build tools found with R and Python were interferring in the build process.




回答2:


I have found a workaround, which is to run the command cabal install cabal-install with MSYS.

I noticed however that with the newest cabal, I get a lot of does not exist errors when running cabal install --only-dependencies or cabal configure if you are not in a MSYS console.

Edit In my case it was caused by a local 64bits perl install. Reordering perl & the haskell platform in my path solved the issue.



来源:https://stackoverflow.com/questions/21553435/error-when-updating-cabal

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