These instructions allow you to install Mono and F# on Ubuntu 12.04.
sudo apt-get install mono-dmcs mono-devel mono-utils
$HOME
directory, type the following at the command line:
mkdir Programs cd Programs
Programs
directory. Extract the tarball file. At the command line type:
tar xvzf fsharp2.0.tgz
fsharp
directory and run the installation script. Type at the command line:
cd fsharp sudo ./install.sh
.bashrc
file. At the command line type:
gedit $HOME/.bashrcGo to very end of the file and add the following lines:
export FSHARP_HOME=$HOME/Programs/fsharp export PATH=$FSHARP_HOME/bin:$PATHSave the file.
Edit/Profile Preferences
. Select the Title and Command
tab, and tick the "Run command as login shell" check-box.
Close all open terminal windows and open a new one.
Verify that F# was installed correctly. Type at the command line:
fsiYou should see the F# Interactive REPL (Read Eval Print Loop):
Microsoft (R) F# 2.0 Interactive build 2.0.0.0 Copyright (c) Microsoft Corporation. All Rights Reserved. For help type #help;; >
Type #quit;;
to exit the REPL.
Verify that NUnit was installed correctly. Type at the command line:
nunit-console -h
You should see the NUnit help screen:
NUnit-Console version 2.6.1.12217 Copyright (C) 2002-2012 Charlie Poole. Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. Copyright (C) 2000-2002 Philip Craig. All Rights Reserved. . . .