试用“cabal sandbox init”并且cabal不识别命令“沙箱” [英] Trying out "cabal sandbox init" and cabal not recognizing the command "sandbox"
本文介绍了试用“cabal sandbox init”并且cabal不识别命令“沙箱”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试使用scotty制作简单网站的教程,但当我尝试命令cabal sandbox init时遇到错误:
cabal:unrecognized command:sandbox(try --help)
有没有人知道什么是错的?
解决方案
您的Cabal / cabal-install版本够新吗?沙盒在Cabal 1.18中引入。您可以使用 cabal --version
命令检查版本。您可以使用以下命令进行升级:
cabal update
cabal install Cabal cabal-install
I'm trying out the tutorial about making a simple website with scotty but I get an error when I try the command "cabal sandbox init":
cabal: unrecognised command: sandbox (try --help)
Does anyone know what is wrong?
解决方案
Is your Cabal/cabal-install version new enough? Sandboxes were introduced in Cabal 1.18. You can check the version with command cabal --version
.
You might be able to upgrade with these commands:
cabal update
cabal install Cabal cabal-install
这篇关于试用“cabal sandbox init”并且cabal不识别命令“沙箱”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文