如何在Windows 7中配置cabal? [英] How to configure cabal in Windows 7?

查看:105
本文介绍了如何在Windows 7中配置cabal?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows 7中安装了Haskell Platform 2012.我在控制台 cabal update 中编写了一个消息,说明有一个新版本的cabal。我写了 cabal install cabal-install 。安装完成后,它告诉我cabal已安装在C:\username\AppData\Roaming\cabal中。因此,当我再次执行 cabal update 时,我正在接收相同的消息,以便安装新版本的cabal。我试图从配置文件中更改cabal目录,但cabal忽略配置文件。 Haskell只能在Unix上工作吗?谢谢

I have installed Haskell Platform 2012 in Windows 7. I write in the console cabal update and I take a message that there is a new version of cabal. I write cabal install cabal-install . After installation finishes it tells me that the cabal has been installed in C:\username\AppData\Roaming\cabal. So when I do cabal update again I am taking the same message that I have to install the new version of cabal. I have tried to change the cabal directory from the config file but cabal ignores the config file. Is Haskell working only on Unix? Thanks

推荐答案

问题在于Haskell附带的 cabal 平台会被取代,而不是您安装的平台。

The problem is that the cabal executable that came with Haskell Platform gets picked up instead of the one that you installed.

您需要编辑 PATH 环境变量的值并放置%AppData%\cabal\bin 之前%PROGRAMFILES%\Haskell Platform \ ... \bin ,以便给予更高的优先级。

You need to edit the value of the PATH environment variable and place %AppData%\cabal\bin before %PROGRAMFILES%\Haskell Platform\...\bin so that it's given higher priority.

这篇关于如何在Windows 7中配置cabal?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆