ubuntu - 如何让 F# 与 Mono 一起工作?

标签 ubuntu f# functional-programming mono ubuntu-9.04

我似乎找不到单声道的编译器/插件。有吗?

最佳答案

  1. here并下载 fsharp.zip
  2. 解压并打开创建的文件夹
  3. 打开终端并以 root 身份运行 ./install-mono.sh(在某些系统上,需要将该脚本中的换行符从 CRLF 转换为 LF)

这将为您提供基本功能,这意味着您将能够运行“mono fsi.exe”并将 F# 应用程序编译为“mono myApp.exe”。

有用的提示:

  1. 为编译器和 F# 交互创建脚本很有意义。即:

    /usr/local/bin/fsc

    #!/bin/sh exec/usr/bin/mono/usr/local/src/FSharp-1.9.9.9/bin/fsc.exe $@

    /usr/local/bin/fsi

    #!/bin/sh exec/usr/bin/mono/usr/local/src/FSharp-1.9.9.9/bin/fsi.exe $@

  2. F# interactive (fsi.exe) 默认尝试引用 System.Windows.Forms,因此为了运行它,需要在 Mono 中支持 WinForms

  3. fsi.exe 在 Xterm 中比在 Gnome 终端中运行得更好。

关于ubuntu - 如何让 F# 与 Mono 一起工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/832552/

相关文章:

java - 在 Java 中使用 Collectors 从两个 hashmaps 中返回一个平均 double

ubuntu - 为什么需要使用 docker 将 `pam_loginuid` 设置为其 `optional` 值?

ubuntu - 无法在 Postfix 上切换到 Let's Encrypt 证书,邮件客户端仍在使用旧证书 - Ubuntu 服务器

php - 用于在一系列文件中进行 grep 的 Shell 脚本

f# - 如何让 NUnit 运行未由模块导出的 F# 测试

python - python中有map的运算符形式吗?

linux - PostgreSQL : download schema at the same time while showing using\d+ <table_name> command?

.net - F# 适合物理应用吗?

ide - 非 Visual Studio F# IDE

haskell - Haskell 中的实例是什么意思?