2在Windows上安装错误cabal

2在Windows上安装错误cabal

本文介绍了Network-2.4.2.2在Windows上安装错误cabal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图在cabal沙盒(1.18。*)内的Windows Server 2008上安装网络软件包(cabal install network)时,出现以下错误:

When attempting to install the network package (cabal install network) on Windows Server 2008 inside of a cabal sandbox (1.18.*) I get the following error:

C:\Users\user\Project>cabal install network --prefix=C:\Users\user\Project
Resolving dependencies...
Configuring network-2.4.2.2...
configure: error: invalid package name: 0
Failed to install network-2.4.2.2
cabal: Error: some packages failed to install:
network-2.4.2.2 failed during the configure step. The exception was:
ExitFailure 1

需要注意的是,网络通过haskell平台,但不会安装在沙箱中,原因很奇怪。确切的错误看起来像 configure:error:无效的软件包名称:0

Important to note that network is installed globally via the haskell platform, but won't install in the sandbox for a strange reason. The exact error looks like configure: error: invalid package name: 0

什么可能会提示软件包名称是0?

What could be prompting the package name to be 0?

推荐答案

使用,它为Windows提供了二进制安装程序,它具有足够的实用程序,标准 cabal install 可以成功安装网络包。

Use MinGHC, which provides binary installers for Windows with enough utilities that a standard cabal install can successfully install the network package.

这篇关于Network-2.4.2.2在Windows上安装错误cabal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 17:28