gpt4 book ai didi

linux - 无法在 Arch Linux 中运行 fsharpi

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:37:56 24 4
gpt4 key购买 nike

我已经使用 sudo pacman -S fsharp mono 安装了 fsharp 包和 mono,但是在终端中运行 fsharp 时,我收到以下错误消息。

Exception by fsi.exe:
System.TypeInitializationException: The type initializer for 'Microsoft.FSharp.Compiler.AbstractIL.IL' threw an exception. ---> System.TypeInitializationException: The type initializer for '<StartupCode$FSharp-Compiler>.$Microsoft.FSharp.Compiler.AbstractIL.IL' threw an exception. ---> System.InvalidTimeZoneException: TZ file too big for the buffer
at System.TimeZoneInfo.BuildFromStream (System.String id, System.IO.Stream stream) [0x00022] in <73ee1b14c2fa4d61b481096ff3d8d6d7>:0
at System.TimeZoneInfo.FindSystemTimeZoneByFileName (System.String id, System.String filepath) [0x00015] in <73ee1b14c2fa4d61b481096ff3d8d6d7>:0
at System.TimeZoneInfo.CreateLocal () [0x000cc] in <73ee1b14c2fa4d61b481096ff3d8d6d7>:0
at System.TimeZoneInfo.get_Local () [0x00009] in <73ee1b14c2fa4d61b481096ff3d8d6d7>:0
at System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc (System.DateTime time, System.Boolean& isAmbiguousLocalDst) [0x00000] in <73ee1b14c2fa4d61b481096ff3d8d6d7>:0
at System.DateTime.get_Now () [0x00008] in <73ee1b14c2fa4d61b481096ff3d8d6d7>:0
at <StartupCode$FSharp-Compiler>.$Microsoft.FSharp.Compiler.AbstractIL.IL..cctor () [0x0028c] in <5920c30f7f81fe20a74503830fc32059>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_generic_class_init (intptr)
at Microsoft.FSharp.Compiler.AbstractIL.IL..cctor () [0x00000] in <5920c30f7f81fe20a74503830fc32059>:0
--- End of inner exception stack trace ---
at Microsoft.FSharp.Compiler.Interactive.Shell+FsiEvaluationSession..ctor (Microsoft.FSharp.Compiler.Interactive.Shell+FsiEvaluationSessionHostConfig fsi, System.String[] argv, System.IO.TextReader inReader, System.IO.TextWriter outWriter, System.IO.TextWriter errorWriter) [0x00010] in <5920c329046a099ca745038329c32059>:0
at Microsoft.FSharp.Compiler.Interactive.Shell.evaluateSession@2897 (System.String[] argv, Microsoft.FSharp.Core.Unit unitVar0) [0x0010d] in <5920c329046a099ca745038329c32059>:0

最佳答案

请看https://bbs.archlinux.org/viewtopic.php?id=210401 .您可能需要为配置的时区重新创建正确的链接。

# rm /etc/localtime
# ln -s /usr/share/zoneinfo/America/Sao_Paulo //change the zone for your region

关于linux - 无法在 Arch Linux 中运行 fsharpi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46401719/

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