How to use F# with mono on linux?

11,241

Solution 1

Well, My box: Ubuntu, mono, fsharp, emacs and fsharp-mode

with fsharp-mode you have

  1. highlighting
  2. interactive console
  3. emacs :-).

Also, you can try to install .net 2.0 on wine (with winetricks for example) together with sharpdevelop 2.2.

Personaly i've decided to use emacs and fsharp-mode.

UPDATE:

another option is to use regular editor such as kate in OCaml mode but it can be inconvenient due to differences between languages.

Solution 2

This question is quite old now, but this can help other people. In CodePlex there is a project called F# cross-platform packages and samples. It has some linux packages (and also for Mac). Click here for the download page.

Solution 3

Here's a similar question with detailed answers: How to get F# working with Mono?

Simple example of compilation command can be found at here: http://gist.github.com/raw/144209/02f2f4450ed8261c5e4f3c18055de89ff0db9612/FebKit.fs

Share:
11,241

Related videos on Youtube

keke
Author by

keke

Updated on April 15, 2022

Comments

  • keke
    keke about 2 years

    I have had difficulty figuring out how to use F# on Linux - I would really appreciate help.

    • Prakash
      Prakash over 14 years
      Do you have mono installed? Have you downloaded F#? Have you run "install-mono.sh"? Where are you at in the process, and what trouble are you having?
    • Prakash
      Prakash over 14 years
      Go here: microsoft.com/downloads/… Download fsharp.zip. Unzip and run the install-mono.sh.
  • Nils
    Nils over 13 years
    I am really unsure why this answer has so many votes... No Version of Visual Studio is able to run on linux. This answer would be ok, for a question regarding Windows. But for this question it is plain wrong.
  • James Moore
    James Moore over 13 years
    Visual Studio isn't required. It's one of the options there, but not the only option. For Linux, you'll want the standalone compiler + library zip, not Visual Studio.
  • James Moore
    James Moore over 13 years
    And the page has changed since this was posted - it's now at research.microsoft.com/en-us/um/cambridge/projects/fsharp/…