![]() |
Edit |
![]() |
|
![]() |
Recent Changes |
![]() |
Subscriptions |
![]() |
Lost and Found |
![]() |
Find References |
![]() |
Rename |
| Search |
![]() |
List all versions |
For Mac OS/X users, install Mono
For Debian users, use your package manager to get
mono-runtime
mono-gac
mono-tools
libmono-winforms2.0-cil
libmono-system-runtime2.0-cil
You must get the last two packages! Get the packages like this
sudo apt-get install <package names>
or use Synaptic Package Manager
Download the latest version of F#
Unzip the distribution file. Then
cd FSharp-1.9.9.9 (or other)
chmod u+x install-mono.sh
sudo ./install-mono.sh
Now follow the instructions to get a copy of mono.snk. Then rerun install-mono.sh
sudo ./install-mono.sh
Look carefully for failures etc.
Start the F# Interactive command line compiler:
bin/fsi.exe
Type your first F# program:
printfn "hello world"
You're off!
Run the F# Interactive command line compiler:
bin/fsc.exe --resident
The --resident flag makes the compiler faster on subsequent invocations.
If you are only running code on Mono/Linux/Mac, and developing on Windows, then you should use the Visual Studio 2008 Shell (Integrated Mode) plus F#, or use Visual Studio 2010. Mount your Mac/Linux directory.
If developing on Mac/Linux, there are many choices. At the time of writing the following editors have specific support for F#, either builtin or through addons provided by the F# community:
TextMate
Emacs
VIM
Other choices are GEdit.
This is required because FSharp.Core.dll is strong-named with a .NET release key. Mono treats these DLLs using special rules, and the DLL must be strong-named with the Mono key. This doesn't affect the logical identity of the DLL. The install-mono.sh script tells you where to get a copy of mono.snk.
This is because the compiler is not pre-compiled. Use the --resident flag, and your subsequent compiler invocations will be faster.
This is for the same reason.
You must install these mono packages:
libmono-winforms2.0-cil
libmono-system-runtime2.0-cil
If you don't, you will get a "missing System.Runtime.Remoting.dll" exception, among others.
This was a known problem with F# 1.9.7.8. Upgrade to F# 1.9.9.9.
![]() |
| This site supports the new NoFollow anti-spam initiative. |
Recent Topics