麻烦安装Haskell平台

时间:2014-11-06 00:04:36

标签: haskell haskell-platform

我正在尝试安装Haskell Platform 2014 2.0,但我无法理解我应该做些什么来使其工作,并且网站上似乎没有有用的文档。 我从网站上下载了二进制文件,解压缩它,启动了'activate-hs'脚本并得到了这个:

Haskell set to:
    GHC         /home/riccardo/usr/local/haskell/ghc-7.8.3-x86_64
    Haddocks    file:///home/riccardo/usr/local/haskell/ghc-7.8.3-x86_64/doc/frames.html
    Other doc   file:///home/riccardo/usr/local/haskell/ghc-7.8.3-x86_64/share/doc/ghc/html/index.html

Symlinks for command line tools (ghc, cabal, etc..) added to:
    /usr/local/bin

即使在--verbose中运行也没有告诉我发生了什么,它只返回所有文件的列表。 我该怎么办?

编辑:

riccardo@eos:~$ whereis ghc
ghc: /usr/local/bin/ghc

如果我转到/usr/local/bin符号链接就在那里,他们指向/home/riccardo/usr/local/haskell/ghc-7.8.3-x86_64/bin中的相应文件,但在属性窗口中它表示它们已损坏,这是什么意思?

此外,如果我进入home/riccardo/usr/local/haskell/ghc-7.8.3-x86_64/bin并尝试直接从那里启动脚本,它仍然无效:

riccardo@eos:~/usr/local/haskell/ghc-7.8.3-x86_64/bin$ ./ghci-7.8.3
./ghci-7.8.3: line 2: /usr/local/haskell/ghc-7.8.3-x86_64/bin/ghc-7.8.3: File o directory non esistente

File o directory non esistente = file or directory does not exist

1 个答案:

答案 0 :(得分:0)

对于后人来说,如果您正在安装generic-linux二进制包,因为这似乎是在描述,那么您不能只运行activate-hs。而是运行install-haskell-platform.sh,将所有内容放在适当的位置。接下来,如果要在不同版本之间切换,可以在将来使用已安装的activate-hs ...

相关问题