Option 1: Install F# 3.1 with Xamarin Studio

logo Xamarin Studio is a free IDE for general purpose development with freemium add-ins for mobile development which supports F# out of the box.

You can now create new projects in Xamarin Studio and/or MonoDevelop and cross-compile projects built in Visual Studio and other environments. See the Mac, Linux and Cross-Platform Dev Guide to go further. For 64-bit support, see below.


Option 2: Install F# 3.1 alone

To use F# 3.1 on Mac OSX, simply:

See the Mac, Linux and Cross-Platform Dev Guide to go further. For 64-bit support, see below.


Option 3: Install F# 3.1 (64-bit) from source

To use F# on Mac OSX in 64-bit mode, use the following:

  • Get and build a 64-bit installation of the runtime used by F# from source.

    Set the “–prefix” flag, e.g. “–prefix=/mono64”

    git clone https://github.com/mono/mono

    cd mono

    ./autogen.sh --prefix=/mono64 --enable-nls=no

    make

    sudo make install

  • Compile F# 3.1 from source

    Set the “–prefix” flag, e.g. “–prefix=/mono64”

    git clone https://github.com/fsharp/fsharp

    cd fsharp

    ./autogen.sh --prefix=/mono64

    make

    sudo make install

  • When you run mono, use /mono64/bin/mono and put /mono64/bin on your path.

  • Adjust other applications that launch mono to use this location.

  • Xamarin Studio and MonoDevelop run applications in 32-bit mode by default. You will need to run programs from the command line to benefit from 64-bit execution.


Option 4: Learn F# in the Browser on the Mac