9

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

Paul Nathan
  • 39,638
  • 28
  • 112
  • 212
keke
  • 131
  • 1
  • 1
  • 2
  • Define 'use' please. Do you want to compile F#, or simply run an executable you compiled on Windows? – Matthew Scharley Nov 01 '09 at 22:24
  • I want to compile code written in F#. – keke Nov 01 '09 at 22:59
  • 4
    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? – Brian Nov 01 '09 at 23:09
  • Which prcoess are we talking about? If I found a process I would probably not have had to ask the question :( Where is this process documented? – keke Nov 01 '09 at 23:13
  • 6
    Go here: http://www.microsoft.com/downloads/details.aspx?FamilyID=b55f0532-ac3c-4106-918c-5586a953a7da&displaylang=en Download fsharp.zip. Unzip and run the install-mono.sh. – Brian Nov 02 '09 at 01:10

5 Answers5

8

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.

Ilya Khaprov
  • 2,546
  • 14
  • 23
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

Community
  • 1
  • 1
Piotr Zurek
  • 2,800
  • 2
  • 24
  • 32
3

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.

Fernando
  • 4,029
  • 1
  • 26
  • 35
0

Google for F#, and the very first entry that comes up is http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/ - and one of the first things on that page is:

Download F# now --> Visual Studio 2010, or CTP Update for Visual Studio 2008 or standalone compiler+library ZIP, for Mono and Windows

Have you installed that, and is something not working for you?

James Moore
  • 8,636
  • 5
  • 71
  • 90
  • 11
    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. – Nils Aug 21 '10 at 19:19
  • 3
    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 Aug 23 '10 at 04:23
  • And the page has changed since this was posted - it's now at http://research.microsoft.com/en-us/um/cambridge/projects/fsharp/release.aspx – James Moore Sep 24 '10 at 16:32
0

Keke, this is a late answer, but I have a post that explains how you can install F# under Linux and Mac systems. It assumes you understand how to compile software for Linux.

Here it is: http://blog.gnucom.cc/2009/installing-f-on-ubuntu-8-04/

Let me know what you think.

sholsapp
  • 15,542
  • 10
  • 50
  • 67