How to get F# working with Mono?

2020-05-11 21:17发布

I can't seem to find a compiler/plugin for mono. Does one exist?

9条回答
Explosion°爆炸
2楼-- · 2020-05-11 21:56

What Piotr Zurek said is basically what i did to get F# and mono to work on Ubuntu 9.04, with the following comments:

  1. Rember to install WinForm support with Mono. Otherwise you can't start fsi.exe.
  2. ./install-mono.sh should be run with root privileges (sudo ./install-mono.sh).
  3. Gnome Terminal dosn't play well with fsi.exe. Start a normal xterm and run fsi.exe whithin that.
查看更多
小情绪 Triste *
3楼-- · 2020-05-11 21:57

In 2019, a lot of these earlier answers are outdated. No need for zip files or the like.

From Ubuntu 19.04 onwards, i.e. disco you can now install packages with:

sudo apt-get install mono-complete fsharp

That gives you the F-sharp compiler at /usr/bin/fsharpc

Alternatively, if you want the latest, you can add the Mono repository and pull packages from there, as detailed at:

https://www.mono-project.com/download/stable/#download-lin

查看更多
啃猪蹄的小仙女
4楼-- · 2020-05-11 22:05

Yes, there's one. Check this out: F# for Mono

查看更多
登录 后发表回答