首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >通过“堆栈安装hsdev`”在Windows 10上安装hsev失败

通过“堆栈安装hsdev`”在Windows 10上安装hsev失败
EN

Stack Overflow用户
提问于 2016-04-10 07:14:47
回答 1查看 2.3K关注 0票数 4

在项目的外部和内部运行stack install hsdev时,我会得到以下错误:

代码语言:javascript
复制
λ stack install hsdev
Run from outside a project, using implicit global project config
Using resolver: lts-5.11 from implicit global project's config file: C:\Users\atc\AppData\Roaming\stack\global-project\stack.yaml
While constructing the BuildPlan the following exceptions were encountered:

--  While attempting to add dependency,
    Could not find package hformat in known packages

--  Failure when adding dependencies:
      hformat: needed (>=0.1), stack configuration has no specified version (latest applicable is 0.1.0.0)
      simple-log: needed (>=0.3.4), stack configuration has no specified version (latest applicable is 0.3.4)
      text-region: needed (>=0.1), stack configuration has no specified version (latest applicable is 0.1.0.0)
    needed for package hsdev-0.1.8.2

--  While attempting to add dependency,
    Could not find package simple-log in known packages

--  While attempting to add dependency,
    Could not find package text-region in known packages

Recommended action: try adding the following to your extra-deps in C:\Users\atc\AppData\Roaming\stack\global-project\stack.yaml
- hformat-0.1.0.0
- simple-log-0.3.4
- text-region-0.1.0.0

在尝试之前,我已经运行了stack update。我想安装hsdev,这样就可以使用SublimeHaskell了。

stack solver给出:

代码语言:javascript
复制
λ stack solver
Run from outside a project, using implicit global project config
Using resolver: lts-5.11 from implicit global project's config file: C:\Users\atc\AppData\Roaming\stack\global-project\stack.yaml
Using configuration file: AppData\Roaming\stack\global-project\stack.yaml
The following packages are missing from the config:

<snip long list of references to directories in AppData\Local\Temp\stack14228\>

No cabal packages found in AppData\Roaming\stack\global-project\stack.yaml. Please add at least one directory containing a .cabal file. You can also use 'stack init' to automatically generate the config file.

相关堆栈信息:

代码语言:javascript
复制
λ stack --version
Version 1.0.4, Git revision cf18703b1392a96a5a4896a560309e501af63260 (3220 commits) x86_6
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-04-10 11:05:05

我按照以下步骤在我的windows机器上安装了hsdev

  1. 运行stack unpack hsdev将hsdev的源代码下载到工作目录中。
  2. 移到目录中,运行stack init --solver以创建适当的stack.yaml构建配置。
  3. 运行stack install构建可执行文件并将其复制到本地bin目录。如果堆栈报告了有关缺少许可文件的错误,请在./tests/test-package下创建一个空的./tests/test-package文件。
票数 12
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36526978

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档