These instructions allow you to install Mono and F# on Ubuntu 12.04.
sudo apt-get install mono-dmcs mono-devel mono-utils
$HOMEdirectory, type the following at the command line:
mkdir Programs cd Programs
Programsdirectory. Extract the tarball file. At the command line type:
tar xvzf fsharp2.0.tgz
fsharpdirectory and run the installation script. Type at the command line:
cd fsharp sudo ./install.sh
.bashrcfile. 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 Commandtab, 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 184.108.40.206 Copyright (c) Microsoft Corporation. All Rights Reserved. For help type #help;; >
#quit;; to exit the REPL.
Verify that NUnit was installed correctly. Type at the command line:
You should see the NUnit help screen:
NUnit-Console version 220.127.116.1117 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. . . .