How to use F# with mono on linux?
Solution 1
Well, My box: Ubuntu, mono, fsharp, emacs and fsharp-mode
with fsharp-mode you have
- highlighting
- interactive console
- 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
Related videos on Youtube
keke
Updated on April 15, 2022Comments
-
keke about 2 years
I have had difficulty figuring out how to use F# on Linux - I would really appreciate help.
-
Prakash over 14 yearsDo 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 over 14 yearsGo here: microsoft.com/downloads/… Download fsharp.zip. Unzip and run the install-mono.sh.
-
-
Nils over 13 yearsI 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 over 13 yearsVisual 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 over 13 yearsAnd the page has changed since this was posted - it's now at research.microsoft.com/en-us/um/cambridge/projects/fsharp/…