Wednesday, June 20, 2012

Installing F# 2.0 on FreeBSD

(continued from phosphorescence: Installing Mono on FreeBSD)

FreeBSD ports also have F#, but, this is not version 2.0, so that we should install F# 2.0 from source via Github.
$ git clone http://github.com/fsharp/fsharp.git
$ cd fsharp
$ autoreconf
$ ./configure
$ gmake
$ sudo gmake install
Let's check F# REPL.
$ fsharpi

Microsoft (R) F# 2.0 Interactive build (private)
Copyright (c) 2002-2011 Microsoft Corporation. All Rights Reserved.

For help type #help;;

> 

2 comments:

Timothy Beyer said...

apparently in the newest versions of fsharp (I tested the latest from git on 2012 Dec 02) with mono (2.11.4 tested from ports) you need to something like the following:

patch files and config.make.in launcher.in
to ignore mono_gc_options:
eg.
replace
MONO_OPTIONS += @mono_gc_options@
with
MONO_OPTIONS =

in both files.

./autogen.sh
gmake
sudo gmake install

I'll file PR to get the port updated soon...

Regards,
Tim

Youhei Kondou said...

Tim, thanks a lot!

Post a Comment