gpt4 book ai didi

haskell - tf-random不会安装在Docker容器中

转载 作者:行者123 更新时间:2023-12-03 22:14:10 24 4
gpt4 key购买 nike

我正在为Docker构建自己的Haskell开发基础镜像。我的Dockerfile的以下块导致错误(以下完整消息):

ENV LANG en_GB.UTF-8
RUN ["add-apt-repository", "-y", "ppa:hvr/ghc"]
RUN ["apt-get", "update"]
RUN ["apt-get", "install", "-y", "cabal-install-1.20", "ghc-7.8.3"]
ENV PATH ~/.cabal/bin:/.cabal/bin:/opt/cabal/1.20/bin:/opt/ghc/7.8.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN ["cabal", "update"]
RUN ["cabal", "install", "cabal-install"]
RUN ["cabal", "install", "happy"]
RUN ["cabal", "install", "alex"]

错误是:
cabal: Error: some packages failed to install:
QuickCheck-2.7.6 depends on tf-random-0.5 which failed to install.
alex-3.1.3 depends on tf-random-0.5 which failed to install.
tf-random-0.5 failed during the final install step. The exception was:
/tmp/pkgConf-tf-random-03817.5: hGetContents: invalid argument (invalid byte sequence)

阅读此 issue report on github之后,我将 LANG参数添加到我的Dockerfile中,但没有帮助。我的容器上还需要其他依赖项来解决此问题吗?

最佳答案

尝试使用您的LANG值作为参数运行locale-gen。

关于haskell - tf-random不会安装在Docker容器中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27584744/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com