Option 1: Install F# 3.0 alone

To use F# 3.0 on Mac OSX, simply:

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


Option 2: Install F# 3.0 with Xamarin Studio

logo Xamarin Studio is a free IDE for general purpose development with freemium add-ins for mobile development. MonoDevelop is a free and open source IDE based on the same code. F# can be used with either.

  • Install Xamarin Studio

  • Go to the AddIn Manager and

    Add “Language Bindings –> F# Language Binding”. If it is missing, build and install it from source.

    Add “Mac Development –> F# Support for MonoMac and Xamarin.Mac Development”

    Optionally, add “Mobile Development –> F# Support for Android Development”. Update using the Alpha channel of “Tools –> Check for Updates” if needed.

    Optionally, add “Mobile Development –> F# Support for iOS Development”. Update using the Alpha channel of “Tools –> Check for Updates” if needed.

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 3: Install F# 3.0 (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.0 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