安装Cabal缺少模块

杰克·塞勒斯

我的ghc安装已过期,因此我决定重新安装ghc和cabal以期希望解决一些问题。我按照这里的步骤开始GHC现在是版本7.8.3。

然后,我删除了〜/ .cabal并尝试使用以下步骤进行安装,但失败。因此,我再次删除了.cabal并尝试了此处的步骤但是当我运行sh bootstrap.sh时,它会遇到缺少的模块:

Using local tarball for parsec-3.1.6.
[1 of 1] Compiling Main             ( Setup.hs, Setup.o )
Linking Setup ...
Configuring parsec-3.1.6...
Building parsec-3.1.6...
Preprocessing library parsec-3.1.6...

Text/Parsec/Prim.hs:80:8:
Could not find module ‘Control.Monad.Trans’
There are files missing in the ‘mtl-2.2.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

Text/Parsec/Prim.hs:81:8:
Could not find module ‘Control.Monad.Identity’
There are files missing in the ‘mtl-2.2.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

Text/Parsec/Prim.hs:83:8:
Could not find module ‘Control.Monad.Reader.Class’
There are files missing in the ‘mtl-2.2.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

Text/Parsec/Prim.hs:84:8:
Could not find module ‘Control.Monad.State.Class’
There are files missing in the ‘mtl-2.2.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

Text/Parsec/Prim.hs:85:8:
Could not find module ‘Control.Monad.Cont.Class’
There are files missing in the ‘mtl-2.2.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

Text/Parsec/Prim.hs:86:8:
Could not find module ‘Control.Monad.Error.Class’
There are files missing in the ‘mtl-2.2.1’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

Text/Parsec/Text.hs:19:18:
Could not find module ‘Data.Text’
There are files missing in the ‘text-1.2.0.0’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

Text/Parsec/Text/Lazy.hs:19:18:
Could not find module ‘Data.Text.Lazy’
There are files missing in the ‘text-1.2.0.0’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.

Error during cabal-install bootstrap:
Building the parsec package failed.

当我跑步时,ghc-pkg check我得到了很多这样的东西:

cannot find any of ["libHSOpenGLRaw-1.5.0.0.a","libHSOpenGLRaw-1.5.0.0.p_a","libHSOpenGLRaw-1.5.0.0-ghc7.8.3.so","libHSOpenGLRaw-1.5.0.0-ghc7.8.3.dylib","HSOpenGLRaw-1.5.0.0-ghc7.8.3.dll"] on library path
 Warning: haddock-interfaces: /usr/local/share/doc/x86_64-linux-ghc-7.8.3/Cabal-1.21.1.0/html/Cabal.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/share/doc/x86_64-linux-ghc-7.8.3/Cabal-1.21.1.0/html doesn't exist or isn't a directory

然后这个:

The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
text-1.1.0.1
Cabal-1.20.0.2
zlib-0.5.4.1
contravariant-1.2
void-0.6.1
netwire-5.0.0
semigroups-0.15.3
unordered-containers-0.2.5.0
transformers-compat-0.3.3.4
exceptions-0.6.1
MonadRandom-0.3
mtl-2.2.1
transformers-0.4.1.0
cpphs-1.18.5
polyparse-1.9
nats-0.2
hashable-1.2.2.0
OpenGL-2.9.2.0
text-1.2.0.0
tagged-0.7.2
stb-image-0.2.1
split-0.2.2
reflection-1.5.1
random-1.0.1.1
primitive-0.5.3.0
prelude-extras-0.4
parallel-3.2.0.4
bitmap-0.0.2
bindings-DSL-1.0.21
GLURaw-1.4.0.1
OpenGLRaw-1.5.0.0
GS-向Monica致歉

您可以ghc-pkg unregister在每个损坏的包装上使用它们来正确清理它们,或者吹掉整个~/.ghc文件夹然后重新开始。您可能需要使用--force以避免遵守包的依赖顺序。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Haskell Cabal安装:缺少C库IW

来自分类Dev

Haskell Cabal安装:缺少C库IW

来自分类Dev

Cabal - 缺少本地依赖

来自分类Dev

沙箱中的Cabal配置在已安装的软件包上抱怨“至少缺少以下依赖项”

来自分类Dev

由于缺少内核模块而无法安装VirtualBox

来自分类Dev

由于缺少内核模块而无法安装VirtualBox

来自分类Dev

安装python模块失败-缺少“ limits.h”吗?

来自分类Dev

Cabal:Cryptonite安装失败

来自分类Dev

运行从cabal安装的程序

来自分类Dev

Haskell Cabal:缺少C库

来自分类Dev

Cabal库与Cabal安装。有什么不同?

来自分类Dev

无法安装Cabal-1.20.0.2

来自分类Dev

限制Cabal安装使用的内存?

来自分类Dev

Haskell Cabal安装错误

来自分类Dev

Tidal Cycles cabal 安装失败

来自分类Dev

由于缺少usr / local / man / man3写入权限,Perl cpanm无法安装模块

来自分类Dev

安装prestashop模块时出现问题:mymodule(/ ...中缺少类)

来自分类Dev

缺少节点模块时出现Heroku App错误(但看起来已安装)

来自分类Dev

如何在嵌入式系统上安装缺少的Perl模块?

来自分类Dev

PusherException:缺少相关的扩展名-请确保同时安装了cURL和JSON模块

来自分类Dev

Python模块安装失败,因为gcc命令缺少标志... gcc命令具有

来自分类Dev

像PyCharm一样在VS Code上安装(或建议)缺少的导入的Python模块

来自分类Dev

由于缺少发行文件,无法安装SQAOD Python模块

来自分类Dev

Wifi加密狗缺少内核模块的编译/安装驱动程序?

来自分类Dev

PusherException:缺少相关的扩展名-请确保同时安装了cURL和JSON模块

来自分类Dev

缺少git支持,请使用“安装模块posh-git”安装posh-git并重新启动cmder

来自分类Dev

Angular 2缺少模块

来自分类Dev

CMake缺少模块目录

来自分类Dev

Python-缺少模块

Related 相关文章

  1. 1

    Haskell Cabal安装:缺少C库IW

  2. 2

    Haskell Cabal安装:缺少C库IW

  3. 3

    Cabal - 缺少本地依赖

  4. 4

    沙箱中的Cabal配置在已安装的软件包上抱怨“至少缺少以下依赖项”

  5. 5

    由于缺少内核模块而无法安装VirtualBox

  6. 6

    由于缺少内核模块而无法安装VirtualBox

  7. 7

    安装python模块失败-缺少“ limits.h”吗?

  8. 8

    Cabal:Cryptonite安装失败

  9. 9

    运行从cabal安装的程序

  10. 10

    Haskell Cabal:缺少C库

  11. 11

    Cabal库与Cabal安装。有什么不同?

  12. 12

    无法安装Cabal-1.20.0.2

  13. 13

    限制Cabal安装使用的内存?

  14. 14

    Haskell Cabal安装错误

  15. 15

    Tidal Cycles cabal 安装失败

  16. 16

    由于缺少usr / local / man / man3写入权限,Perl cpanm无法安装模块

  17. 17

    安装prestashop模块时出现问题:mymodule(/ ...中缺少类)

  18. 18

    缺少节点模块时出现Heroku App错误(但看起来已安装)

  19. 19

    如何在嵌入式系统上安装缺少的Perl模块?

  20. 20

    PusherException:缺少相关的扩展名-请确保同时安装了cURL和JSON模块

  21. 21

    Python模块安装失败,因为gcc命令缺少标志... gcc命令具有

  22. 22

    像PyCharm一样在VS Code上安装(或建议)缺少的导入的Python模块

  23. 23

    由于缺少发行文件,无法安装SQAOD Python模块

  24. 24

    Wifi加密狗缺少内核模块的编译/安装驱动程序?

  25. 25

    PusherException:缺少相关的扩展名-请确保同时安装了cURL和JSON模块

  26. 26

    缺少git支持,请使用“安装模块posh-git”安装posh-git并重新启动cmder

  27. 27

    Angular 2缺少模块

  28. 28

    CMake缺少模块目录

  29. 29

    Python-缺少模块

热门标签

归档