Проблема с fsharpi в Mac OS X: не удалось установить обработчик ctrl-c - обработка Ctrl-C будет недоступна - PullRequest
2 голосов
/ 12 декабря 2010

Я установил mono 2.8.1 с помощью установщика пакетов с сайта mono-project.com и f sharp libs / bin с http://fsxplat.codeplex.com/releases/view/55463.

Когда я запускаю 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.

Я также попытался запустить со всеми перестановками --readline- --nologo --gui- безуспешно: (

Кто-нибудь знает, почему это происходит? Что еще более раздражает, так это то, что это, кажется, влияет только на меня, так как мой друг установил его точно так же, как и тот же метод установки. Могут ли MacPorts повлиять на мою установку fsharp?

Заранее спасибо за любую помощь!

Приветствия

Jan

1 Ответ

1 голос
/ 20 декабря 2010

Бьюсь об заклад, вы должны перейти к этому,

https://github.com/fsharp/fsharp

, который является F # для моно.

CodePlex один имеет значительную зависимость от Windows.

...