尝试使用安装 Haskell patform
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
显示这种错误:
欢迎来到哈斯克尔!
该脚本将下载并安装以下二进制文件: * ghcup - Haskell 工具链安装程序(用于管理 GHC/cabal 版本) * ghc - 格拉斯哥 Haskell 编译器 * cabal - Cabal 构建工具
ghcup 只安装到以下目录,可以随时删除:/home/welcome/.ghcup
按 ENTER 继续或按 ctrl-c 中止。请注意,此脚本可以在任何给定时间重新运行。
% Total % Received % Xferd 平均速度 时间 时间 当前 Dload 上传总花费 左速度 100 20.2M 100 20.2M 0 0 2302k 0 0:00:08 0:00:08 --:--:-- 2899k [信息]正在升级 GHCup... [ 警告 ] 没有可用的 GHCup 更新
系统要求 注意:您需要以下软件包: curl g++ gcc gmp make ncurses realpath xz-utils。有关这些包的确切名称,请查阅您的发行版文档。
按 ENTER 继续或按 ctrl-c 中止。安装可能需要一段时间。
[信息]验证摘要:ghc-8.10.4-x86_64-fedora27-linux.tar.xz [信息]解包:ghc-8.10.4-x86_64-fedora27-linux.tar.xz到/tmp/ghcup-liKjHm
[信息]安装GHC(这可能需要一段时间)[ghc-configure]./configure:第44行:printf:写入错误:设备上没有剩余空间[ghc-configure]./configure:第45行:echo:写入错误:设备[ghc-configure]上没有剩余空间排序:fflush失败:'标准输出':设备[ghc-configure]上没有剩余空间排序:写入错误[ghc-configure]./configure:第54行:echo:写入错误:设备上没有剩余空间 [ghc-configure] ./configure:第 82 行:printf:写入错误:设备上没有剩余空间 [错误] BuildFailed 在目录“/tmp/ghcup-liKjHm”中失败:NonZeroExit 77“./ configure" ["--prefix=/home/welcome/.ghcup/ghc/8.10.4"] 检查日志 "/home/welcome/.ghcup/logs" 和构建目录 "/tmp/ghcup-liKjHm"更多线索。确保清理“/tmpI/ghcup-liKjHm” 然后。“_eghcup --cache install ghc 推荐”失败!
在 ghcup.log 中:
Debug: Identified Platform as: PlatformResult {_platform = Linux UnknownLinux, _distroVersion = Just (General (Version {_vEpoch = Nothing, _vChunks = (Digits 4 :| []) :| [Digits 2 :| []], _vMeta = [], _vRel = []}))}
Debug: Requested to install GHC with Version {_vEpoch = Nothing, _vChunks = (Digits 8 :| []) :| [Digits 10 :| [],Digits 4 :| []], _vMeta = [], _vRel = []}
Info: verifying digest of: ghc-8.10.4-x86_64-fedora27-linux.tar.xz
Info: Unpacking: ghc-8.10.4-x86_64-fedora27-linux.tar.xz to /tmp/ghcup-liKjHm
Info: Installing GHC (this may take a while)
Error: BuildFailed failed in dir "/tmp/ghcup-liKjHm": NonZeroExit 77 "./configure" ["--prefix=/home/welcome/.ghcup/ghc/8.10.4"]
Check the logs at "/home/welcome/.ghcup/logs" and the build directory "/tmp/ghcup-liKjHm" for more clues.
Make sure to clean up "/tmp/ghcup-liKjHm" afterwards.
在 ghc-configure.log 文件中:
cat: write error: No space left on device
cat: write error: No space left on device
./configure: line 1970: printf: write error: No space left on device
./configure: line 1970: printf: write error: No space left on device
./configure: line 1970: printf: write error: No space left on device
./configure: line 1970: printf: write error: No space left on device
./configure: line 1970: printf: write error: No space left on device
./configure: line 1970: printf: write error: No space left on device
./configure: line 1970: printf: write error: No space left on device
./configure: line 1970: printf: write error: No space left on device
./configure: line 1970: printf: write error: No space left on device
cat: write error: No space left on device
./configure: line 2134: printf: write error: No space left on device
cat: write error: No space left on device
cat: write error: No space left on device
cat: write error: No space left on device
cat: write error: No space left on device
cat: write error: No space left on device
cat: write error: No space left on device
./configure: line 2375: printf: write error: No space left on device
checking build system type... ./config.guess: line 112: echo: write error: No space left on device
cat: write error: No space left on device
./configure: line 2389: printf: write error: No space left on device
x86_64-pc-linux-gnu
./configure: line 2409: printf: write error: No space left on device
checking host system type... ./configure: line 2422: printf: write error: No space left on device
x86_64-pc-linux-gnu
./configure: line 2442: printf: write error: No space left on device
checking target system type... ./configure: line 2455: printf: write error: No space left on device
x86_64-pc-linux-gnu
Build platform inferred as: x86_64-unknown-linux
Host platform inferred as: x86_64-unknown-linux
Target platform inferred as: x86_64-unknown-linux
GHC build : x86_64-unknown-linux
GHC host : x86_64-unknown-linux
GHC target : x86_64-unknown-linux
LLVM target: x86_64-unknown-linux
./configure: line 3356: printf: write error: No space left on device
checking for path to top of build tree... ./configure: line 3382: printf: write error: No space left on device
/tmp/ghcup-liKjHm/ghc-8.10.4
./configure: line 3416: printf: write error: No space left on device
checking for a BSD-compatible install... ./configure: line 3450: echo: write error: No space left on device
./configure: line 3451: echo: write error: No space left on device
./configure: line 3484: printf: write error: No space left on device
./install-sh -c
./configure: line 3502: printf: write error: No space left on device
checking for gfind... ./configure: line 3535: printf: write error: No space left on device
no
./configure: line 3502: printf: write error: No space left on device
checking for find... ./configure: line 3520: printf: write error: No space left on device
./configure: line 3532: printf: write error: No space left on device
/usr/bin/find
./configure: line 3544: echo: write error: No space left on device
./configure: line 3551: printf: write error: No space left on device
configure: WARNING: /usr/bin/find looks like a non-*nix find, ignoring it
./configure: line 3555: printf: write error: No space left on device
checking for find... ./configure: line 3602: printf: write error: No space left on device
no
./configure: line 3614: printf: write error: No space left on device
checking whether ln -s works... ./configure: line 3621: printf: write error: No space left on device
no, using cp -pR
./configure: line 3630: printf: write error: No space left on device
checking for gsed... ./configure: line 3661: printf: write error: No space left on device
sed
./configure: line 3673: printf: write error: No space left on device
checking for python3... ./configure: line 3691: printf: write error: No space left on device
./configure: line 3703: printf: write error: No space left on device
/usr/bin/python3
./configure: line 3795: printf: write error: No space left on device
checking for gcc... ./configure: line 3811: printf: write error: No space left on device
./configure: line 3822: printf: write error: No space left on device
gcc
./configure: line 3853: printf: write error: No space left on device
./configure: line 3863: printf: write error: No space left on device
./configure: line 3873: printf: write error: No space left on device
./configure: line 3863: printf: write error: No space left on device
./configure: line 3873: printf: write error: No space left on device
./configure: line 3863: printf: write error: No space left on device
./configure: line 3873: printf: write error: No space left on device
./configure: line 3863: printf: write error: No space left on device
./configure: line 3873: printf: write error: No space left on device
cat: write error: No space left on device
./configure: line 3893: printf: write error: No space left on device
checking whether the C compiler works... ./configure: line 3916: printf: write error: No space left on device
./configure: line 3919: printf: write error: No space left on device
./configure: line 3957: printf: write error: No space left on device
no
./configure: line 3959: printf: write error: No space left on device
./configure: line 3962: printf: write error: No space left on device
configure: error: in `/tmp/ghcup-liKjHm/ghc-8.10.4':
./configure: line 416: printf: write error: No space left on device
configure: error: C compiler cannot create executables
See `config.log' for more details
./configure: line 4: echo: write error: No space left on device
./configure: line 8: printf: write error: No space left on device
./configure: line 9: echo: write error: No space left on device
sort: fflush failed: 'standard output': No space left on device
sort: write error
./configure: line 40: echo: write error: No space left on device
./configure: line 44: printf: write error: No space left on device
./configure: line 45: echo: write error: No space left on device
sort: fflush failed: 'standard output': No space left on device
sort: write error
./configure: line 54: echo: write error: No space left on device
./configure: line 82: printf: write error: No space left on device
系统规格:
操作系统:Solus
内存:4GB
存储空间:139.2/160GB 免费