“将磁盘插入驱动器D”阻止Haskell开始 [英] "Insert disk into Drive D" blocks Haskell from starting

查看:113
本文介绍了“将磁盘插入驱动器D”阻止Haskell开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是另一个问题的结果。在那个问题中,我询问了有关导入Data.Heap的建议。有人告诉我,我首先必须安装堆。按照指示我跑了

 > cabal install堆

弹出一个Windows错误信息框,告诉我驱动器D中没有磁盘,我不得不插入一个。三个按钮(忽略,继续或重试)都不起作用。我必须从任务管理器中杀死GHCi才能摆脱弹出窗口并关闭命令提示符窗口。当我试图运行命令时,无论GHCi是否在运行,都会发生这种情况。现在,我无法启动GHCi,但未收到弹出窗口,这会阻止所有内容。



我试图关闭计算机,然后再打开。相同的弹出。我甚至卸载了Haskell平台并重新安装了它。 (它是版本8.0.2-a。)当我启动GHCi时仍然是相同的弹出窗口。 (我使用平台安装的快捷键WinGHCi来启动GHCi。)



我希望避免弹出窗口的建议。否则我根本无法运行GHCi。



谢谢。

解决方案

<显然这是一个长期存在的问题。 (请参阅此处 here )。它可能与gcc有关,它可能与微软有关。

一个解决方案是去设置。 (我在Windows 10上)。搜索磁盘管理。在底部向下滚动到磁盘D.右键单击并选择更改驱动器号。将其改为其他(!)。

这似乎是个诀窍。鉴于这个问题似乎已经存在了多久,我不明白为什么它没有被修复。



我现在可以使用命令提示符来 p>

 > cabal install堆

,然后是GHCi(REPL)

  Prelude> import heap 

这是原始问题。


This question is an outgrowth of another question. In that question I asked for advice for importing Data.Heap. I was told that I first had to install Heap. As instructed I ran

> cabal install Heap

A Windows error box popped up telling me that there was no disk in Drive D and that I had to insert one. None of the three buttons (Ignore, Continue, or Try Again) worked. I had to kill GHCi from the task manager to get rid of the popup and to close the command prompt window. This happened whether or not GHCi was running when I tried to run the command. Now I can't start GHCi without getting that popup, which blocks everything.

I tried turning the computer off and then on again later. Same popup. I even uninstalled the Haskell platform and reinstalled it. (It is version 8.0.2-a.) Still the same popup when I start GHCi. (I use the platform-installed shortcut WinGHCi to start GHCi.)

I would appreciate advice for avoiding that popup. Otherwise I can't run GHCi at all.

Thanks.

解决方案

Apparently it's a long-standing problem. (See here and here). It may have to do with gcc, and it may have to do with Microsoft.

One solution is to go to Settings. (I'm on Windows 10.) Search for Disk Management. At the bottom scroll down to Disk D. Right click and select Change Drive Letter. Change it to something else(!).

That seems to do the trick. Given how long this problem seems to have been around, I don't understand why it hasn't been fixed.

I am now able to use Command Prompt to

>cabal install Heap 

and then in GHCi (REPL)

Prelude> import Heap

That was the original problem.

这篇关于“将磁盘插入驱动器D”阻止Haskell开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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