-
Notifications
You must be signed in to change notification settings - Fork 0
F#s on Mac
harold edited this page Nov 20, 2011
·
2 revisions
Getting F# up and running on Mac OS X in n easy steps.
Run this script:
#!/bin/sh -x
#This script removes Mono from an OS X System. It must be run as root
rm -r /Library/Frameworks/Mono.framework
rm -r /Library/Receipts/MonoFramework-*
for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do
(cd ${dir};
for i in `ls -al | grep /Library/Frameworks/Mono.framework/ | awk '{print $9}'`; do
rm ${i}
done);
done
Also, delete any old F# folders you may have lying around.
- Go to: http://www.go-mono.com/mono-downloads/download.html
- Click OS X
- Click SDK (This should initiate a 110 megabyte download)
- Open the .dmg
- Open the .pkg inside
- Install to the default location
- Go to: http://www.microsoft.com/download/en/details.aspx?id=11100
- Click the big download button for: fsharp.zip
- Unzip it somewhere nice, and get a terminal into the newly unzipped folder
- Run:
wget -O mono.snk http://github.com/mono/mono/raw/master/mcs/class/mono.snk - Run:
install-mono.sh - Run:
mono bin/fsi.exe --gui- 1+1;;#quit;;echo "printfn \"Hi\"" > hello.fsmono bin/fsc.exe hello.fsmono hello.exe- Profit?