安装iHaskell时遇到困难 [英] difficulties installing iHaskell

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

问题描述

cabal install ihaskell 我阅读


此安装出现问题时,请务必先尝试Github版本。 IHaskell正在快速发展,所以Hackage可能并不总是最新的。为了从Github安装,请从存储库中取出,然后使用 ./ build.sh all


$ 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。

semigroupoids 问题#21


$ b


cabal install cabal-install 它仍然不能识别 sandbox init 并且它事实上 cabal -



使用其中cabal 我发现有问题cabal可执行文件从我的 ghc-7.6 安装,并用符号链接替换它。在我的情况下



sudo ln -s /home/jdm/.cabal/bin/cabal / usr / bin / cabal 工程师(和 iHaskell )安装完美。结案。



After much difficulty with cabal install ihaskell I read

If you have trouble with this installation, please make sure to try the Github version first. IHaskell is in rapid development, so Hackage may not always be the most recent. In order to install from Github, pull from the repository, and then install with ./build.sh all

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

Even after updating with cabal install cabal-install it still didn't recognize sandbox init and it fact cabal -V showed it was still version 16.

Using where cabal I found the faulty cabal executable from my ghc-7.6 installation and replaced it with a symlink. In my case

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

So now I have cabal version 23, I opened a sandbox and profunctors (and iHaskell) install perfectly. Case closed.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆