本文介绍了安装iHaskell时遇到困难的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

cabal install ihaskell 我阅读

$ b $进行安装b

今天早上我升级到 ghc-7.8.4 cabal-1.22 和I我正在使用一个简单的 git clone 从github仓库下载iHaskell。

它有几个库的定位困难。

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

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

  me @ ubuntu:〜/ Downloads / IHaskell $ cabal install mtl 
正在解析依赖项...
所有请求的软件包已经安装:
mtl-2.2.1
如果您想重新安装,请使用--reinstall

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






解决方案

在StackOverflow上,并在Github上发布了几个问题,我知道我对cabal的符号链接已经过期。出于某种原因,即使在我下载并安装了版本22之后,它也指向了版本16。


$ b


After much difficulty with cabal install ihaskell I read

This morning I upgraded to ghc-7.8.4 and cabal-1.22 and I am downloading iHaskell from the github repository using a simple git clone.

It is having difficulting locating several libraries.

/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

Unfortunately I can verify some of these are present.

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 seems to be more of a C++ error than a Haskell error but I don't know how to deal.

解决方案

After reading on StackOverflow and posting several issues on Github, I learned that my symlink to cabal was out of date. For some reason it pointed to version 16 even after I downloaded and installed version 22.

semigroupoids Issue #21

这篇关于安装iHaskell时遇到困难的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-14 00:53