Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';t在Arch Linux中运行fsharpi_Linux_F#_Mono_Archlinux - Fatal编程技术网

Can';t在Arch Linux中运行fsharpi

Can';t在Arch Linux中运行fsharpi,linux,f#,mono,archlinux,Linux,F#,Mono,Archlinux,我已经使用sudo pacman-S fsharp mono安装了fsharp包和mono,但是在终端中运行fsharpi时,我收到以下错误消息 Exception by fsi.exe: System.TypeInitializationException: The type initializer for 'Microsoft.FSharp.Compiler.AbstractIL.IL' threw an exception. ---> System.TypeInitializatio

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

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 
fsi.exe的异常情况: System.TypeInitializationException:“Microsoft.FSharp.Compiler.AbstractIL.IL”的类型初始值设定项引发异常。-->System.TypeInitializationException:“$Microsoft.FSharp.Compiler.AbstractIL.IL”的类型初始值设定项引发异常。-->System.InvalidTimeZoneException:TZ文件对于缓冲区来说太大 在:0中的System.TimeZoneInfo.BuildFromStream(System.String id,System.IO.Stream Stream)[0x00022]处 位于:0中的System.TimeZoneInfo.FindSystemTimeZoneByFileName(System.String id,System.String文件路径)[0x00015]处 位于:0中的System.TimeZoneInfo.CreateLocal()[0x000cc] 在System.TimeZoneInfo.get_Local()[0x00009]中:0 位于以下位置的System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc(System.DateTime时间,System.Boolean&isAmbiguousLocalDst)[0x00000]:0 在System.DateTime.get_Now()[0x00008]中:0 0中的.Microsoft.FSharp.Compiler.AbstractIL.IL..cctor()[0x0028c] ---内部异常堆栈跟踪的结束--- at(包装器管理到本机)系统。对象:\ uuuiCall\ uWrapper\ uMono\ uGeneric\ uClass\ uInit(intptr) 在Microsoft.FSharp.Compiler.AbstractIL.IL..cctor()[0x00000]中:0 ---内部异常堆栈跟踪的结束--- 在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:0 位于Microsoft.FSharp.Compiler.Interactive.Shell。evaluateSession@2897(System.String[]argv,Microsoft.FSharp.Core.Unit unitVar0)[0x0010d]输入:0 请看一下。 您可能需要为配置的时区重新创建正确的链接

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