[英]Error when installing haskell-platform from source
I need to install from source files the haskell platform so as indicated in the instructions installed cabal, ghc and other libraries for Ubuntu that are needed. 我需要从源文件安装haskell平台,如已安装的cabal,ghc和其他Ubuntu所需的库中的说明所示。
When I try to install the haskell platform with the command: 当我尝试使用以下命令安装haskell平台时:
./platform.sh /home/myuser/haskell/ghc-7.10.2-x86_64-unknown-linux-deb7.tar.bz2 -j 3
I get the following error: 我收到以下错误:
***
*** Building hptool
***
Building hptool-0.1...
Preprocessing executable 'hptool' for hptool-0.1...
***
*** Running hptool
***
Error when running Shake build system:
* 3
Error, file does not exist and no rule available:
3
and I don't find anyone with same error. 而且我找不到任何有相同错误的人。 The haskell platform version that I have downloaded is haskell-platform-7.10.2-a
我下载的haskell平台版本为haskell-platform-7.10.2-a
When using the ./platform.sh
script you can't pass a build option like -j 3
. 使用
./platform.sh
脚本时,不能传递-j 3
这样的构建选项。
Try building and running hptool manually like this: 尝试像这样手动构建和运行hptool:
cd hptool
cabal sandbox init
cabal install -j3
cd ..
./hptool/.cabal-sandbox/bin/hptool PATH-TO-GHC-BINDIST SHAKE-TARGET
Run hptool with no arguments to get a list of valid values for SHAKE-TARGET. 不带任何参数运行hptool以获得SHAKE-TARGET的有效值列表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.