简体   繁体   English

GHC无法找到动态库-无法找到模块'Data.Functor.Reverse'

[英]GHC cannot find dynamic libraries - Could not find module ‘Data.Functor.Reverse’

GHCi-7.8.4 will not load anything from transformers library as it cannot find the GHCi file. 由于无法找到GHCi文件,因此GHCi-7.8.4无法从transformers库中加载任何内容。 What is wrong? 怎么了?

Prelude> import Data.Functor.Reverse

<no location info>:
    Could not find module ‘Data.Functor.Reverse’
    Perhaps you haven't installed the "dyn" libraries for package ‘transformers-0.4.3.0’?
    Use -v to see a list of the files searched for.

Locations searched:
  /home/jdm/.cabal/lib/transformers-0.4.3.0/ghc-7.8.4/Data/Functor/Reverse.dyn_hi

https://mail.haskell.org/pipermail/haskell-cafe/2009-December/071442.html https://mail.haskell.org/pipermail/haskell-cafe/2009-December/071442.html

Use the --enable-shared option to cabal install. 使用--enable-shared选项进行秘密安装。

If you want dynamic libraries everywhere, put shared: True in ~/.cabal/config . 如果要在各处使用动态库,请将shared: True放入~/.cabal/config You'll need to recompile all of your libraries. 您需要重新编译所有库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM