【问题标题】:difficulties installing iHaskell安装 iHaskell 的困难
【发布时间】:2015-03-14 18:21:22
【问题描述】:

cabal install ihaskell 遇到很多困难后,我阅读了

如果您在安装过程中遇到问题,请务必先试用 Github 版本。 IHaskell 处于快速发展阶段,因此 Hackage 可能并不总是最新的。为了从 Github 安装,请从存储库中拉取,然后使用 ./build.sh all 进行安装

今天早上我升级到了ghc-7.8.4cabal-1.22,我正在使用简单的git clone 从 github 存储库下载 iHaskell。

很难找到几个图书馆。

/usr/bin/ld: cannot find -lHStransformers-compat-0.4.0.3-ghc7.8.4
/usr/bin/ld: cannot find -lHSmtl-2.1.3.1-ghc7.8.4
/usr/bin/ld: cannot find -lHStagged-0.7.3-ghc7.8.4
/usr/bin/ld: cannot find -lHStext-1.2.0.4-ghc7.8.4
/usr/bin/ld: cannot find -lHSvector-0.10.12.2-ghc7.8.4
/usr/bin/ld: cannot find -lHSunordered-containers-0.2.5.1-ghc7.8.4
/usr/bin/ld: cannot find -lHSsyb-0.4.4-ghc7.8.4
/usr/bin/ld: cannot find -lHSmtl-2.1.3.1-ghc7.8.4
/usr/bin/ld: cannot find -lHSdlist-0.7.1-ghc7.8.4
/usr/bin/ld: cannot find -lHSattoparsec-0.12.1.3-ghc7.8.4
/usr/bin/ld: cannot find -lHSscientific-0.3.3.7-ghc7.8.4
/usr/bin/ld: cannot find -lHShashable-1.2.3.1-ghc7.8.4

不幸的是,我可以验证其中一些存在。

me@ubuntu:~/Downloads/IHaskell$ cabal install mtl
Resolving dependencies...
All the requested packages are already installed:
mtl-2.2.1
Use --reinstall if you want to reinstall anyway

ld 似乎更像是 C++ 错误而不是 Haskell 错误,但我不知道如何处理。

【问题讨论】:

标签: haskell cabal ihaskell


【解决方案1】:

在阅读了 StackOverflow 并在 Github 上发布了几个问题后,我了解到我与 cabal 的符号链接已过时。出于某种原因,即使在我下载并安装了 22 版之后,它仍指向 16 版。

semigroupoids Issue #21

即使在使用cabal install cabal-install 更新后,它仍然无法识别sandbox init,而事实上cabal -V 显示它仍然是第16 版。

使用where cabal,我从我的ghc-7.6 安装中找到了错误的cabal 可执行文件,并将其替换为符号链接。就我而言

sudo ln -s /home/jdm/.cabal/bin/cabal /usr/bin/cabal

所以现在我有了 cabal 版本 23,我打开了一个沙盒,并完美安装了 profunctors(和 iHaskell)。结案。

【讨论】:

    猜你喜欢
    • 2011-02-03
    • 1970-01-01
    • 1970-01-01
    • 2014-07-14
    • 1970-01-01
    • 1970-01-01
    • 2014-03-17
    • 2014-09-27
    • 2015-03-24
    相关资源
    最近更新 更多