FSI.exe does not work under Ubuntu 10.10

Update: I tried the release of CTP in November. Same error message. I forgot to note that the Ubuntu server version is installed on this server. I do not have this problem on my Ubuntu desktop where Desktop 10.10 works. Therefore, I suspected that these might be some command-line libraries. After installing libreadline-dev and libreadline5, the error message disappeared. However, the problem that fsi is stuck still exists.

Update2: I tried the new Mono 2.8.1. Same problem FSI.

Update3: Since this problem is very reproducible, I reported it as an error in the fsi.exe file for Microsoft. See how this happens.

Update4: Got a quick response from Don Sim. The solution he proposed solved this problem. I myself created the answer.

Hi,

I installed F # 2.0 on a server running Ubuntu 10.10 and Mono 2.8. fsc.exe works fine, I have no problem compiling fs files. However, when I run fsi.exe as follows: mono / usr / local / FSharp / bin / fsi.exe

I received an FSI prompt, but the error message continues to repeat

"Failed to install ctrl-c-handler - Ctrl-C processing will be unavailable. Error: Exception was caused by the purpose of the call"

Am I missing something here?

Mono 2.8 has been compiled and installed from source.

+5
source share
2 answers

Feel really uncomfortable to answer my own question. In any case, I will answer so that other people can take advantage.

, libreadline-dev libreadline5,

ctrl-c- - Ctrl-C . :

fsi.exe,

 fsi --gui-

.

, . , , fsi.exe System.Windows.Forms, Window. fsi X. , fsi , X. , .

+7

F # Linux. Mono 2.8 F # 2010 ( , ?!) :

$ sudo ./install-mono.sh
In order to add FSharp.Core.dll to the Mono GAC the DLL needs to be
re-signed with the mono.snk key. The mono.snk key is available from
the 'Mono Sources'.

  http://www.mono-project.com/
  http://github.com/mono/mono/raw/master/mcs/class/mono.snk

For example, run:
  wget -O mono.snk http://github.com/mono/mono/raw/master/mcs/class/mono.snk

Then re-run this script.

An alternative to installing the DLLs in the Mono GAC is to add the
FSharp bin directory to the MONO_PATH variable. For more information
on 'How Mono Finds Assemblies' see http://www.mono-project.com/Gacutil

wget, , :

$ wget -O mono.snk http://github.com/mono/mono/raw/master/mcs/class/mono.snk
--2010-11-23 17:02:43--  http://github.com/mono/mono/raw/master/mcs/class/mono.snk
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/mono/mono/raw/master/mcs/class/mono.snk [following]
--2010-11-23 17:02:44--  https://github.com/mono/mono/raw/master/mcs/class/mono.snk
Connecting to github.com|207.97.227.239|:443... connected.
ERROR: certificate common name `*.github.com' doesn't match requested host name `github.com'.
To connect to github.com insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.

, F #, :

$ sudo ./install-mono.sh
-- Resigning FSharp.Core.dll with mono.snk
ERROR: Invalid number of parameters.

Usage: sn [-q | -quiet] options [parameters]

 -q | -quiet            Quiet mode (minimal display)

Help options
 -? | -h                Show this help screen about the tool
 -? | -h config         Configuration options
 -? | -h csp            Crypto Service Provider (CSP) related options
 -? | -h convert        Format convertion options
 -? | -h sn             StrongName signing options
-- Installing FSharp DLLS into the GAC
Failure adding assembly bin/FSharp.Core.dll to the cache: Strong name cannot be verified for delay-signed assembly

mono.snk Mono 2.8 F # , , :

$ sudo ./install-mono.sh
-- Resigning FSharp.Core.dll with mono.snk
Assembly bin/FSharp.Core.dll signed.
-- Installing FSharp DLLS into the GAC
Installed bin/FSharp.Core.dll into the gac (/usr/local/lib/mono/gac)

F # - , (, , ):

$ mono bin/fsi.exe

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

For help type #help;;

> 1+2*3;;

CTRL + Z, , kill %1, .

+1

All Articles