今天我在笔记本电脑上安装了windows 8.1和haskell。我正试图构建自己的haskell库,但当我试图使用阴谋主义者时,我遇到了一个错误。这是一个错误:
D:\Development\School\AFP\Assignments\Practice\Exercise\Project>cabal sdist
Distribution quality errors:
'license: NONE' is not a recognised license. The known licenses are: GPL,
GPL-2, GPL-3, LGPL, LGPL-2.1, LGPL-3, AGPL, AGPL-3, BSD2, BSD3, MIT, ISC,
MPL-2.0, Apache, Apache-2.0, PublicDomain, AllRightsReserved, OtherLicense
Distribution quality warnings:
No 'category' field.
No 'maintainer' field.
No 'synopsis' field.
A 'license-file' is not specified.
When distributing packages it is encouraged to specify source control
information in the .cabal file using one or more 'source-repository' sections.
See the Cabal user guide for details.
Note: the public hackage server would reject this package.
Warning: Cannot run preprocessors. Run 'configure' command first.
Building source dist for Project-0.1.0.0...
cabal: does not exist在使用“阴谋主义者”之前,我使用了以下命令:
每一个命令都成功了,除了阴谋组织。阴谋集团的安装只提供以下警告:
D:\Development\School\AFP\Assignments\Practice\Exercise\Project>cabal install -j
Resolving dependencies...
In order, the following will be installed:
Project-0.1.0.0 (reinstall)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Notice: installing into a sandbox located at
D:\Development\School\AFP\Assignments\Practice\Exercise\Project\.cabal-sandbox
Configuring Project-0.1.0.0...
Building Project-0.1.0.0...
Installed Project-0.1.0.0这是我的Project.cabal文件:
-- Initial Project.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
-- Initial Project.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: Project
version: 0.1.0.0
-- synopsis:
description: Education
license: NONE
-- license-file:
-- author:
-- maintainer:
-- copyright:
-- category:
build-type: Simple
extra-source-files: File6, File5, File4, File3, File2
cabal-version: >=1.10
library
exposed-modules: File1
-- other-modules:
-- other-extensions:
build-depends: base >=4.8 && <4.9, QuickCheck >=2.8 && <2.9
hs-source-dirs: src
default-language: Haskell2010我试过谷歌,但我找不到一个好的解决方案。我使用以下版本:
阴谋版本: 1.22.4.0
Haskell版本: 7.10.2
如果您需要更多的信息,请询问。
发布于 2015-09-18 17:05:58
问题是阴谋集团找不到额外源文件中的文件。我以为我不必添加haskell文件的扩展名,但这是必需的。
我还有另外一个问题。额外的源文件没有使用hs-source-dirs,所以我必须显式地编写文件的"src/“infront。
发布于 2015-09-17 16:14:50
我对sdist一无所知,但问题很清楚:您已经在您的阴谋文件中指定了“NONE”作为许可证,但是sdist选项不允许这样做。configure、build和init并不关心特定的许可,但sdist显然关心。
为了获得更多信息,我搜索了谷歌的“阴谋主义者”,并找到了这。
这个
cabal sdist的优点是,Cabal将进行更多的检查,并确保tarball具有HackageDB所期望的结构。
HackageDB可能需要一个有效的许可,因此不允许使用“无”。
https://stackoverflow.com/questions/32634947
复制相似问题