Macos Mac OS X上的fsharpi出现问题:未能安装ctrl-c处理程序-ctrl-c处理程序将不可用

Macos Mac OS X上的fsharpi出现问题:未能安装ctrl-c处理程序-ctrl-c处理程序将不可用,macos,f#,mono,Macos,F#,Mono,我已经使用mono-project.com上的软件包安装程序和来自的f sharp libs/bin安装了mono 2.8.1 当我从终端运行fsharpi时,返回以下内容: Microsoft (R) F# 2.0 Interactive build 2.0.0.0 Copyright (c) Microsoft Corporation. All Rights Reserved. For help type #help;; Failed to install ctrl-c handler

我已经使用mono-project.com上的软件包安装程序和来自的f sharp libs/bin安装了mono 2.8.1

当我从终端运行fsharpi时,返回以下内容:

Microsoft (R) F# 2.0 Interactive build
2.0.0.0 Copyright (c) Microsoft Corporation. All Rights Reserved.

For help type #help;;

Failed to install ctrl-c handler - Ctrl-C handling will not be available. Error was:  Exception has been thrown by the target of an invocation.
不幸的是,我试过运行mono--verbose/usr/lib/fsharp/fsi.exe,但在日志中看不到任何有用的东西

Method System.MulticastDelegate:Equals (object) emitted at 0x4714c78 to 0x4714d0a (code length 146) [fsi.exe]
converting method (wrapper managed-to-native) Mono.Unix.Native.Stdlib:sys_signal (int,Mono.Unix.Native.SignalHandler)
Method (wrapper managed-to-native) Mono.Unix.Native.Stdlib:sys_signal (int,Mono.Unix.Native.SignalHandler) emitted at 0x4714d10 to 0x4714d89 (code length 121) [fsi.exe]
converting method System.Reflection.TargetInvocationException:.ctor (System.Exception)
Method System.Reflection.TargetInvocationException:.ctor (System.Exception) emitted at 0x4714d90 to 0x4714dae (code length 30) [fsi.exe]
converting method System.ApplicationException:.ctor (string,System.Exception)
Method System.ApplicationException:.ctor (string,System.Exception) emitted at 0x4714dc0 to 0x4714de6 (code length 38) [fsi.exe]
converting method System.Exception:.ctor (string,System.Exception)
Method System.Exception:.ctor (string,System.Exception) emitted at 0x4714df8 to 0x4714e16 (code length 30) [fsi.exe]
converting method System.Exception:get_Message ()
Method System.Exception:get_Message () emitted at 0x4714e18 to 0x4714e52 (code length 58) [fsi.exe]
converting method FSIstrings.SR:fsiCouldNotInstallCtrlCHandler (string)
Method FSIstrings.SR:fsiCouldNotInstallCtrlCHandler (string) emitted at 0x4714e60 to 0x4714ed8 (code length 120) [fsi.exe]
converting method <StartupCode$Fsi>.$FSIstrings/fsiCouldNotInstallCtrlCHandler@222:Invoke (System.Tuple`2<string, Microsoft.FSharp.Core.PrintfFormat`5<Microsoft.FSharp.Core.FSharpFunc`2<string, string>, Microsoft.FSharp.Core.Unit, string, string, string>>)
Method <StartupCode$Fsi>.$FSIstrings/fsiCouldNotInstallCtrlCHandler@222:Invoke (System.Tuple`2<string, Microsoft.FSharp.Core.PrintfFormat`5<Microsoft.FSharp.Core.FSharpFunc`2<string, string>, Microsoft.FSharp.Core.Unit, string, string, string>>) emitted at 0x4714ed8 to 0x4714f14 (code length 60) [fsi.exe]
converting method <StartupCode$Fsi>.$FSIstrings/fsiCouldNotInstallCtrlCHandler@222-1:Invoke (string)
Method <StartupCode$Fsi>.$FSIstrings/fsiCouldNotInstallCtrlCHandler@222-1:Invoke (string) emitted at 0x4714f18 to 0x4714f35 (code length 29) [fsi.exe]
converting method System.IO.UnexceptionalStreamWriter:Write (char)
Method System.IO.UnexceptionalStreamWriter:Write (char) emitted at 0x4714f38 to 0x4714f74 (code length 60) [fsi.exe]
Failed to install ctrl-c handler - Ctrl-C handling will not be available. Error was:
 Exception has been thrown by the target of an invocation.
Method System.MulticastDelegate:从0x4714c78到0x4714d0a(代码长度146)发出的相等(对象)[fsi.exe]
转换方法(包装管理为本机)Mono.Unix.native.Stdlib:sys_signal(int,Mono.Unix.native.SignalHandler)
方法(包装器管理为本机)Mono.Unix.native.Stdlib:sys_信号(int,Mono.Unix.native.SignalHandler)在0x4714d10到0x4714d89(代码长度121)发出[fsi.exe]
正在转换方法System.Reflection.TargetInvocationException:.ctor(System.Exception)
方法System.Reflection.TargetInvocationException:。在0x4714d90到0x4714dae(代码长度30)发出的ctor(System.Exception)[fsi.exe]
正在转换方法System.ApplicationException:.ctor(字符串,System.Exception)
方法System.ApplicationException:。在0x4714dc0到0x4714de6(代码长度38)[fsi.exe]发出的ctor(字符串,System.Exception)
正在转换方法System.Exception:.ctor(字符串,System.Exception)
方法System.Exception:。在0x4714df8到0x4714e16(代码长度30)[fsi.exe]发出的ctor(字符串,System.Exception)
正在转换方法系统。异常:获取\u消息()
方法System.Exception:从0x4714e18到0x4714e52(代码长度58)[fsi.exe]发出的get_消息()
转换方法FSIstrings.SR:fsiCouldNotInstallCtrlCHandler(字符串)
方法FSIstrings.SR:fsiCouldNotInstallCtrlCHandler(字符串)在0x4714e60到0x4714ed8(代码长度120)处发出[fsi.exe]
转换方法。$FSIstrings/fsiCouldNotInstallCtrlCHandler@222:Invoke(System.Tuple`2)
方法:$FSIstrings/fsiCouldNotInstallCtrlCHandler@222:从0x4714ed8到0x4714f14(代码长度60)发出的调用(System.Tuple`2)[fsi.exe]
转换方法。$FSIstrings/fsiCouldNotInstallCtrlCHandler@222-1:调用(字符串)
方法:$FSIstrings/fsiCouldNotInstallCtrlCHandler@222-1:从0x4714f18到0x4714f35(代码长度29)发出的调用(字符串)[fsi.exe]
转换方法System.IO.UnexceptionalStreamWriter:Write(字符)
方法System.IO.UnexceptionalStreamWriter:在0x4714f38到0x4714f74(代码长度60)发出的写入(字符)[fsi.exe]
未能安装ctrl-c处理程序-ctrl-c处理程序将不可用。错误是:
调用的目标已引发异常。
我还尝试过使用--readline--nologo--gui的所有排列方式运行,但没有成功:(

有人知道为什么会发生这种情况吗?更令人气愤的是,这似乎只会影响我,因为我的一个朋友使用完全相同的安装方法安装了它。MacPorts会影响我的fsharp安装吗

提前感谢您的帮助

干杯


我打赌你应该去看这个

这是单声道的F#


CodePlex one对Windows有很大的依赖性。

请参阅:-您是否安装了Apple的X?有可能,MacPorts会导致Mono出现问题,因为它会覆盖系统工具和库。请在没有MacPorts的环境中尝试。事实上,我也遇到了同样的问题,即使不使用MacPorts,问题仍然存在。您找到了吗回答这个问题?您到社区维护的源分支的链接很有用,但是asker链接的CodePlex项目是用于社区维护的跨平台软件包的。此外,我相信MS版本是针对Mono进行测试的-堆栈跟踪看起来像是Unix特定的代码路径。