我已經使用mono-project.com中的程序包安裝程序安裝mono 2.8.1,並且f sharp libs /垃圾箱http://fsxplat.codeplex.com/releases/view/55463。Mac OS X上的fsharpi問題:無法安裝ctrl-c處理程序 - Ctrl-C處理將不可用
當我從終端運行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.
傷心,我已經嘗試運行單--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/[email protected]: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/[email protected]: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/[email protected]:Invoke (string)
Method <StartupCode$Fsi>.$FSIstrings/[email protected]: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.
我也試圖與沒有成功:(
沒有人有--readline- --nologo --gui-所有排列運行任何想法爲什麼這是很開心效果圖創作?更令人氣憤的是,這似乎只會影響我,因爲我的一位朋友使用完全相同的安裝方法安裝了它。 MacPorts可以影響我的fsharp安裝嗎?
在此先感謝您的幫助!
乾杯
月
請參閱:http://stackoverflow.com/questions/4256918/fsi-exe-does-not-work-under-ubuntu-10-10 - 您是否安裝了Apple X? – 2010-12-12 19:31:39
有可能,MacPorts會導致Mono出現問題,因爲它覆蓋了系統工具和庫。在沒有MacPorts的環境中嘗試。 – 2010-12-20 13:54:42
其實我有同樣的問題,即使不使用Macports時它仍然存在。 你有沒有找到任何答案? – jbssm 2012-01-01 17:06:40