如何为 Ubuntu 13.04 安装 Haskell 平台?键入时出现以下错误sudo apt-get install haskell-platform:
E: Unable to locate package haskell-platform error
Run Code Online (Sandbox Code Playgroud) 我正在尝试在 ubuntu 11.10 上安装 haskell,我正在按照本网站上的说明进行操作:https : //gist.github.com/1524859
但是当我输入时,./configure我收到一条错误消息:
checking for path to top of build tree... utils/ghc-pwd/dist/build/tmp/ghc-pwd: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory
configure: error: cannot determine current directory
Run Code Online (Sandbox Code Playgroud)
有谁知道我做错了什么?
我已经等了几年才能做一个
apt-get install haskell-platform
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 上。在 Ubuntu 10.10 上可以使用 haskell 平台包吗?
14.04 没有软件中心提供的 haskell 平台,对吗?
我需要通过源代码编译它还是有另一种方法来使这个工作?
罗洛夫
这是什么意思,我可以不安装haskell吗?我刚升级到Natty,是这个原因吗?
正如您在屏幕截图中看到的,我在软件中心遇到了这个问题:

The following packages have unmet dependencies:
haskell-platform: Depends: ghc6 (< 6.12.1+) but 6.12.3-1ubuntu7 is to be installed
Depends: libghc6-cgi-dev (>= 3001.1.7.2) but 3001.1.7.2-1build1 is to be installed
Depends: libghc6-fgl-dev (< 5.4.2.2+) but 5.4.2.2-2build2 is to be installed
Depends: libghc6-glut-dev (< 2.1.2.1+) but 2.1.2.1-1build1 is to be installed
Depends: libghc6-haskell-src-dev (< 1.0.1.3+) but 1.0.1.3-2build1 is to be installed
Depends: libghc6-html-dev (< 1.0.1.2+) but 1.0.1.2-3build2 is to be installed
Depends: libghc6-hunit-dev (< 1.2.2.1+) but 1.2.2.1-2build2 is to be installed
Depends: …Run Code Online (Sandbox Code Playgroud) Haskell 平台目前对 Ubuntu 11.04 有未满足的依赖。这是一个已知的错误,但我希望尽快安装它。
谁能推荐一种在 11.04 上安装 haskell-platform 的方法?我链接到的错误报告提供了一个需要使用 vim 编辑二进制包 (?) 的解决方案,但我宁愿从源代码安装某些东西而不是走那条路。
我想运行托管在Cabal上的这个程序,这是 Haskell 应用程序的官方存储库。
首先我安装了 Cabal:
sudo apt-get install cabal-install
cabal update
Run Code Online (Sandbox Code Playgroud)
其次,我安装了程序本身:
$ cabal install clanki
Resolving dependencies...
Downloading safe-0.3.9...
Downloading strict-0.3.2...
Configuring strict-0.3.2...
Configuring safe-0.3.9...
Building safe-0.3.9...
Building strict-0.3.2...
Installed strict-0.3.2
Installed safe-0.3.9
Downloading clanki-1.2.6...
Configuring clanki-1.2.6...
Building clanki-1.2.6...
Installed clanki-1.2.6
Run Code Online (Sandbox Code Playgroud)
第三,我尝试运行该程序:
$ clanki --list
clanki: command not found
Run Code Online (Sandbox Code Playgroud)
我想安装 Leksah 以便我可以学习如何在 Haskell 中编写代码。所以我已经安装了最新版本的 ghc(我希望是正确的)。但是我缺少 Leksah 最新版本的 Cabal。我似乎无法安装它。我有 1.24 版,而最新的是 1.24。在进行以下操作之前,我已经更新了 Cabal,以及下载的 1.24 版。我仍然收到以下回复。当我尝试通过键入以下内容在终端中安装时:
cabal install cabal cabal-install
Run Code Online (Sandbox Code Playgroud)
我收到以下回复:
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: cabal-0.0.0.0 (user goal)
next goal: youProbablyWantCapitalCabal (dependency of cabal-0.0.0.0)
Dependency tree exhaustively searched.
Run Code Online (Sandbox Code Playgroud)
当我输入以下内容时:
cabal install foo
Run Code Online (Sandbox Code Playgroud)
我收到以下回复:
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: foo-1.0 (user goal)
trying: base-4.8.2.0/installed-0d6... (dependency of foo-1.0)
trying: containers-0.5.6.2/installed-593... (dependency of foo-1.0)
next goal: haskell98 (dependency of foo-1.0)
rejecting: haskell98-2.0.0.3 (conflict: base==4.8.2.0/installed-0d6...,
haskell98 …Run Code Online (Sandbox Code Playgroud) 第一:是的,我的意思是只安装 GHC,而不是 Haskell 平台。我正在为此目的而制作的 VM 中安装,我在其他地方安装了该平台。
因此,从发行版安装的标准说明提到了ghc6未被识别为有效目标(不再?)。所以如果我安装这个ghc包,我(成功)得到 7.6.3。
我确实确保已universe启用并拥有最新的软件包列表。是不是7.8.2还没打包?
./configure
checking for gfind... no
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking for ghc... no
configure: error: GHC is required unless bootstrapping from .hc files.
256
Run Code Online (Sandbox Code Playgroud)
我想安装 Glasgow Haskell Compiler,并且 ./configure 要求 GHC。它要求什么样的 GHC?全球强子对撞机?我从http://www.haskell.org/ghc/download_ghc_7_6_3下载了源代码
我想知道是否有一些值得信赖的 GHC 7.6 PPA?最好是最新的。
我想要一个不错的最新 Haskell 平台,而不必从源代码构建。我对 Linux 没有足够的经验,不想打扰我自己安装的重要软件,这些软件可能是非结构化和临时的。毕竟,这不是包管理器的用途吗?