当尝试在 cabal 沙箱 (1.18.*) 内的 Windows Server 2008 上安装网络包(cabal 安装网络)时,我收到以下错误:
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: invalid package name: 0
什么可能会提示包名称为 0?