How to make F # work with Mono?

I can not find compiler / plugin for mono. Does it exist?

+46
functional-programming ubuntu f # mono
May 7 '09 at 1:42 a.m.
source share
8 answers
  • Go here and download fsharp.zip
  • Unzip it and open the created folder
  • Open a terminal and run. / install -mono.sh as root (on some systems it is necessary to convert newline characters to script from CRLF to LF)

This will give you basic functions, which means that you can run "mono fsi.exe" and compile F # applications as "mono myApp.exe".

Useful Tips:

  • It makes sense to create scripts for the compiler and F # interactive. i.e:.

    / Usr / local / bin / LPS

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

    / Usr / local / bin / FSI

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

  • F # interactive (fsi.exe) tries to refer to System.Windows.Forms by default, so Mono will need to run WinForms support

  • fsi.exe works better in Xterm than in the Gnome terminal.

+33
May 7 '09 at 5:03 a.m.
source share

For reference, there are now Linux packages (.deb and .rpm) and a Mac OS X installer available at http://fsxplat.codeplex.com/ , which will save you the trouble of manually copying files and creating your own startup scripts.

+17
Nov 14 '10 at 0:29
source share

Yes, there. Check it out: F # for mono

+13
May 7 '09 at 1:49 a.m.
source share

You can download the F # zip file from Microsoft , and then run (for example) "mono fsi.exe".

+4
May 7 '09 at 1:49
source share

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

  • Rember to install WinForm support using Mono. Otherwise, you will not be able to run fsi.exe.
  • ./install-mono.sh should be run as root (sudo./install-mono.sh).
  • Gnome terminal does not work well with fsi.exe. Run normal xterm and run fsi.exe in this.
+2
May 12 '09 at 7:25
source share

See also detailed installation instructions, including F # PowerPack and the MySQL Connector: http://2sharp4u.wordpress.com/2010/09/03/installing-f-2-0-on-monolinux

+1
Jan 08 '11 at 15:37
source share

Joe Pamer, one of the authors of the F # compiler, helped me get this work in July, I wrote the following steps here: http://saladwithsteve.com/2010/07/building-fsharp-on-the-mac.html

+1
Jan 11 2018-11-11T00:
source share

If you are on Ubuntu, follow these three steps.

  • Download and install the ".deb" package from here .
  • Run the following commands.

    sudo apt-add-repository ppa:directhex/ppa sudo apt-get update sudo apt-get install monodevelop 
  • Launch MonoDevelop. go to the add-on manager, Gallery> Language bindings> F #, install.

+1
Aug 27 '12 at 10:29
source share



All Articles